[wp-trac] [WordPress Trac] #36434: Consider TinyMCE's implementation of `contenteditable="false"` for views

WordPress Trac noreply at wordpress.org
Mon Jul 25 23:58:29 UTC 2016

#36434: Consider TinyMCE's implementation of `contenteditable="false"` for views
 Reporter:  iseulde         |       Owner:  iseulde
     Type:  task (blessed)  |      Status:  accepted
 Priority:  high            |   Milestone:  4.6
Component:  TinyMCE         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript

Comment (by azaozz):

 In 36434.5.patch:
 - Add the back-compat changes from 36434.4.patch.
 - Restore changing of the views iframes body classes when the editor body
 class name changes.
 - Bind the mutation observer used to resize the view iframes to the iframe
 window. That prevents eventual memory leak when the view is deleted.
 - Stop triggering the `wp-mce-view-unbind` event as previously discussed.

 Thinking we can keep the unbind method for now. In theory it can still be
 used to unbind before the view node is removed from the DOM (if a plugin
 even needs that). This will need another look in 4.7.

Ticket URL: <https://core.trac.wordpress.org/ticket/36434#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list