From 10bf8967d21249bf366865d2d27eca270ba04819 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 20 Apr 2015 20:56:10 +0000 Subject: [PATCH] TinyMCE: fix creating a preview when pasting an embeddable URL in Firefox. Part prop iseulde. Fixes #31988. git-svn-id: https://develop.svn.wordpress.org/trunk@32229 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {