[wp-trac] [WordPress Trac] #52133: TinyMCE editor doesn't load properly when initializing on Visual Tab (Firefox)

WordPress Trac noreply at wordpress.org
Fri Jun 4 20:59:36 UTC 2021


#52133: TinyMCE editor doesn't load properly when initializing on Visual Tab
(Firefox)
-------------------------------+-----------------------
 Reporter:  metalandcoffee     |       Owner:  (none)
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  TinyMCE            |     Version:  5.6
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:21 metalandcoffee]:
 > I've confirmed that you can also trigger this issue by initiating a
 drag-and-drop on the metabox.

 Unfortunately this is a known problem that has always existed. Nothing to
 do with TinyMCE, the browsers would "empty" iframes when they are dragged
 (their position/patent node changes in the DOM). That's a security
 precaution afaik.

 There is a possible workaround for this involving deleting the TinyMCE
 instance on dragstart (can be quite choppy), and re-initializing it after
 dragend but it was failing a lot (about 1/5 loosely depending on content
 length) last time I tested it.

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


More information about the wp-trac mailing list