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

WordPress Trac noreply at wordpress.org
Fri Apr 7 22:29:32 UTC 2017


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

Comment (by azaozz):

 In 35760.patch:
 - This is a somewhat raw, "first run" patch. May need some cleanup and/or
 refinement.
 - The scripts, stylesheets and default settings for the editor are
 outputted from PHP and need to be "enqueued" before the footer (before
 `admin_print_footer_scripts`).
 - It is aware of `wp_editor()` and won't output the same editor parts
 twice.

 Tried loading from JS "on demand", but that can be quite slow (typically
 more than 3 sec.). After tinymce.js is loaded it starts to initialize,
 then has to load the css and maybe additional js, then it finishes
 initializing. So it takes "double load" time.

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


More information about the wp-trac mailing list