[wp-trac] [WordPress Trac] #35760: Provide API for TinyMCE editor to be dynamically instantiated via JS

WordPress Trac noreply at wordpress.org
Tue May 9 23:03:02 UTC 2017


#35760: Provide API for TinyMCE editor to be dynamically instantiated via JS
-------------------------+-------------------------
 Reporter:  westonruter  |       Owner:  azaozz
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.8
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  needs-patch  |     Focuses:  javascript
-------------------------+-------------------------

Comment (by westonruter):

 Replying to [comment:35 azaozz]:
 > Sorry but I don't seem to follow. Added `wp.editor.remove()` in [40588]
 for exactly this purpose. You don't need to do `QTags._buttonsInit();`
 when using `wp.editor.remove()`.

 Try commenting out `QTags._buttonsInit();` and then load add a second Text
 widget. You'll see that the QuickTags only get initialized for the first
 instance: https://cloudup.com/cWQ2hGF6fKm

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


More information about the wp-trac mailing list