[wp-trac] [WordPress Trac] #62676: Classic editor: Firefox - Full height editor button not loading in the editor

WordPress Trac noreply at wordpress.org
Wed Dec 11 17:16:26 UTC 2024


#62676: Classic editor: Firefox - Full height editor button not loading in the
editor
--------------------------+------------------------------
 Reporter:  robertghetau  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.7.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by sainathpoojary):

 I investigated the root cause of this issue further and found that it
 occurs because the `tinymce-editor-setup` event listener is not registered
 before the event gets triggered. You can refer to the relevant code at
 this two places:

 https://core.trac.wordpress.org/browser/trunk/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js#L21
 https://core.trac.wordpress.org/browser/trunk/src/js/_enqueues/wp/editor/dfw.js#L1468

 In contrast, when switching to text mode and then navigating back to
 visual mode, the behavior is different. While in text mode, dfw.js is
 called, which registers the tinymce-editor-setup event listener.
 Subsequently, when switching back to visual mode, the event listener is
 already registered, and triggering the event successfully adds the DFW
 button.

 A potential solution could involve ensuring that the event is registered
 before it is triggered or delaying the trigger until the registration is
 complete.

 I would greatly appreciate any input or suggestions to resolve this
 further. I also reviewed script-loader.php but could not identify anything
 relevant there.


 I have attached the video showing the event trigger delay:
 Chrome: https://utfs.io/f/PL8E4NiPUWyOh3jgvm006Edx2tfphuaYK5oLsA9IcTvyjC8N
 Firefox:
 https://utfs.io/f/PL8E4NiPUWyOPSGLHEiPUWyOpNe2J5st06zudQZVDoClH7jb

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


More information about the wp-trac mailing list