TinyMCE: fix creating a preview when pasting an embeddable URL in Firefox.

Part prop iseulde. Fixes #31988.
Built from https://develop.svn.wordpress.org/trunk@32229


git-svn-id: http://core.svn.wordpress.org/trunk@32203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-04-20 20:57:28 +00:00
parent a581c9851a
commit 955b0bf979
4 changed files with 3 additions and 3 deletions

View File

@ -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 <p>
node.innerHTML = '';
} else {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-RC2-32228';
$wp_version = '4.2-RC2-32229';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.