diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index 19fefd0b62..4c9f2f3eef 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -193,7 +193,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { // When a url is pasted or inserted, only try to embed it when it is in an empty paragrapgh. node = editor.dom.getParent( node, 'p' ); - if ( node && /^[\s\uFEFF\u00A0]*$/.test( node.textContent || node.innerText ) ) { + if ( node && /^[\s\uFEFF\u00A0]*$/.test( $( node ).text() || '' ) ) { // Make sure there are no empty inline elements in the

node.innerHTML = ''; } else {