[wp-trac] [WordPress Trac] #31901: JS error while post editing

WordPress Trac noreply at wordpress.org
Thu Apr 16 23:13:22 UTC 2015


#31901: JS error while post editing
--------------------------+-------------------------
 Reporter:  m_i_n         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  TinyMCE       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+-------------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => 4.2


Comment:

 Finally was able to reproduce this. Seems caused by "too fast" loading of
 the editor when reloading the page :)

 Happens in the `wpemoji` plugin. The reason seems to be that
 `window.twemoji` is not defined yet by the time the TinyMCE `wpemoji`
 plugin is initialized, as the editor JS is in the browser's memory cache
 at that point. Calling `window.twemoji` directly in the plugin's methods
 seems to fix it.

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


More information about the wp-trac mailing list