[wp-trac] [WordPress Trac] #24067: TinyMCE 4.0

WordPress Trac noreply at wordpress.org
Sun Feb 2 01:54:34 UTC 2014


#24067: TinyMCE 4.0
-------------------------+-----------------------
 Reporter:  josh401      |       Owner:  azaozz
     Type:  enhancement  |      Status:  accepted
 Priority:  high         |   Milestone:  3.9
Component:  TinyMCE      |     Version:  3.8
 Severity:  minor        |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------

Comment (by azaozz):

 Looking at the differences between tinymce.js and tinymce.jquery.js, there
 are only couple of helper functions in the jQuery build that include
 Sizzle. No other differences.

 There is also the
 [https://github.com/tinymce/tinymce/blob/master/js/tinymce/classes/jquery.tinymce.js
 jQuery addon] that adds a few handy methods to jQuery mostly for
 initializing TinyMCE, but has to patch few of the methods. As far as I see
 this can be used without using the jQuery build.

 Note that jQuery is not loaded inside the editor iframe, using it there
 can break things.

 So using the jQuery build wouldn't make much of a difference except the
 slightly smaller size of `wp-tinymce.js.gz`. However there's a possibility
 that the version of Sizzle in jQuery might be different than the one in
 TinyMCE (some plugin loading old version of jQuery on the front-end and
 another plugin adding TinyMCE, etc.). So safest would be to use the
 standard build.

 We can enqueue jQuery from WP_Editor, then use it in `editor.js` and the
 init script. That will simplify them a bit and ensure that jQuery is
 always present for use outside/around the editor.

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


More information about the wp-trac mailing list