[wp-trac] [WordPress Trac] #24067: TinyMCE 4.0
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Feb 10 19:28:12 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):
 `tinymce.on('AddEditor', function()...` works as expected but is somewhat
 hard to use. The JS has to run after tinymce.js is loaded (obviously) but
 before the `tinymce.init()` call for the instance. By default
 tinymce.init() is fired shortly after tinymce.js is loaded, so it's hard
 to time when to do `'AddEditor'` especially from other JS.
 As @josh401 suggested best would be if there is a small TinyMCE plugin
 that does this. Alternatively there is a (new)
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/js/tinymce/plugins/wordpress/plugin.js#L314 jQuery custom event]
 fired on editor.init as long as the `'wordpress'` plugin is loaded.
 Also, looking at At.js: it is not a very good idea to manipulate the
 editor content (the iframe's body) with jQuery. Generally you can "look"
 but not "touch" as changing anything else that text strings would bypass
 the TinyMCE internal handling of events, node changes, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24067#comment:123>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list