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

WordPress Trac noreply at wordpress.org
Sat Apr 23 08:29:42 UTC 2016


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

Comment (by iseulde):

 Not sure how to solve unbinding. Now we provide the node and unbinding
 happens before removal. If we switch to some kind of cleanup instead,
 running after the node's been removed, some information necessary to
 unbind is missing.

 E.g.

 In the case were we don't use iframes, and have mejs.

 We need the ID associated with the node to remove the instance from the
 global object.

 `window.mejs.players[ $( node ).find( '.mejs-container' ).get( 0 ).id
 ].remove()`

 Maybe in this case the view instance needs to save IDs associated with its
 nodes, and check which nodes are missing on cleanup.

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


More information about the wp-trac mailing list