WordPress.org

Make WordPress Core

Changeset 32229


Ignore:
Timestamp:
04/20/2015 08:56:10 PM (5 years ago)
Author:
azaozz
Message:

TinyMCE: fix creating a preview when pasting an embeddable URL in Firefox.
Part prop iseulde. Fixes #31988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js

    r32140 r32229  
    194194                node = editor.dom.getParent( node, 'p' );
    195195
    196                 if ( node && /^[\s\uFEFF\u00A0]*$/.test( node.textContent || node.innerText ) ) {
     196                if ( node && /^[\s\uFEFF\u00A0]*$/.test( $( node ).text() || '' ) ) {
    197197                    // Make sure there are no empty inline elements in the <p>
    198198                    node.innerHTML = '';
Note: See TracChangeset for help on using the changeset viewer.