[wp-trac] [WordPress Trac] #42618: wp.mce.views API not using registered shortcode functions

WordPress Trac noreply at wordpress.org
Tue Jan 16 14:00:31 UTC 2018


#42618: wp.mce.views API not using registered shortcode functions
---------------------------+----------------------
 Reporter:  netsurfer2705  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  TinyMCE        |     Version:
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 I do not agree. There should be no need to change any JS (functions) if
 one correctly registered a valid and functioning shortcode!
  BTW: Even if I am willing to do so, the affected functions are spread all
 over the core, none of them intended to be overwritten. And there is also
 nearly no documentation, although the "basic system" was already
 introduced with version 3.5!

 I'm not exactly sure what you're saying here. You seem to be changing
 core's functionality (how galleries look/work) but don't want to change
 the functions that implement that functionality?

 Editor "views" have nothing to do with shortcodes. They can be used to
 show a preview of a rendered shortcode inside the editor, that's all. If
 you want to change how gallery previews work, you will have to write the
 code for the previews yourself :)

 Swissspidy pointed you at the proper direction already, there are plugins
 that do the things you want to do, have a look at their code, that's how
 open source works (assuming your plugin will be open source too).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42618#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list