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

WordPress Trac noreply at wordpress.org
Tue Jul 26 08:34:24 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 bduclos):

 Still having issue when copy paste a shortcode view containing HTML tags.
 It was working in WP 4.5.3
 The issue is line 119 of wp-includes/js/tinymce/plugins/wpview/plugin.js
 which creates a text node instead of an html node.

 event.targetClone = editor.getDoc().createTextNode(
      window.decodeURIComponent( editor.dom.getAttrib( event.targetClone,
 'data-wpview-text' ) )

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

More information about the wp-trac mailing list