Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #52046, comment 3


Ignore:
Timestamp:
12/28/2020 12:24:58 PM (4 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52046, comment 3

    initial v1  
    1 Think I (finally) got to the bottom of it. Looks like it is a timing issue (no surprise) of the `'tinymce-editor-init'` custom jQuery event. not sure why it only happens in Firefox but potentially can happen in any browser.
     1Think I (finally) got to the bottom of it. Looks like it is a timing issue (no surprise) of the `'tinymce-editor-init'` custom jQuery event. Not sure why it only happens in Firefox but potentially can happen in any browser.
    22
    33Problem is that event is triggered asynchronously/independently of the DOM loading, but several of the callbacks are attached on DOM ready. For some reason after the TinyMCE and jQuery updates the order there has changed a bit and now `'tinymce-editor-init'` for the main editor on the old Edit Post screen may fire before DOM ready so several callbacks don't get executed. One of these callbacks is for making the toolbar "sticky" and setting/resetting "dfw mode". Patch coming up.