[wp-trac] [WordPress Trac] #55012: TinyMCE editor not rendering correctly in visual mode using wp_editor function in a meta box on a page with the Block editor enabled in WP 5.9

WordPress Trac noreply at wordpress.org
Mon Aug 26 23:27:06 UTC 2024


#55012: TinyMCE editor not rendering correctly in visual mode using wp_editor
function in a meta box on a page with the Block editor enabled in WP 5.9
--------------------------+-----------------------------
 Reporter:  rickcurran    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  TinyMCE       |     Version:  5.9
 Severity:  major         |  Resolution:  worksforme
 Keywords:                |     Focuses:  ui, javascript
--------------------------+-----------------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 > I am also unable to reproduce this bug consistently

 > the iFrame inside the editor has an empty header and body

 This sounds like the same (old) problem: the browsers do not allow iframe
 nodes to be moved in the DOM. They get reset, even if the iframe "source"
 is local. I'm afraid there's nothing we can do to prevent this as it is a
 security feature/enhancement in the browsers.

 The only possible fix is to delay initializing the editor until after any
 "DOM moves" on page load are complete. This was also the fix for some of
 the previous tickets. Another possibility would be to "lock" the postboxes
 and make them non-draggable. Was looking at doing this as an UI
 enhancement (make them draggable only when Screen Options tab is open) but
 it was blocked because of some very vocal opposition. I don't see a
 problem if a plugin does it though :)

 Going to close this as worksforme because it seems to work in most
 cases/is pretty hard to reproduce. Feel free to reopen with a patch or new
 info on how to fix.

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


More information about the wp-trac mailing list