id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 37482,Copy/paste shortcode view containing HTML tags is broken,bduclos,,"There is an issue when we copy/paste a shortcode view containing HTML tags. It was working in WP 4.5.3 The issue is line 120 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' ) ) ); }}} For example: I have the following shortcode: {{{ [toggle title=""Toggle Title""]

Lorem ipsum

[/toggle] }}} In Visual Mode, copy/paste the view generates the following broken view: [[Image(http://i.imgur.com/dYqUr8P.gif)]] ",defect (bug),closed,normal,,TinyMCE,4.6,normal,maybelater,,,javascript