Make WordPress Core


Ignore:
Timestamp:
06/06/2015 10:37:13 PM (10 years ago)
Author:
iseulde
Message:

TinyMCE: wptextpattern: disable for IE 8 and lower

Props azaozz, iseulde.
See #31441.

File:
1 edited

Legend:

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

    r32699 r32700  
    4040            rng = editor.selection.getRng();
    4141            node = rng.startContainer;
    42             text = node.nodeValue;
    4342
    44             if ( node.nodeType !== 3 ) {
     43            if ( ! node || node.nodeType !== 3 ) {
    4544                return;
    4645            }
    4746
     47            text = node.nodeValue;
    4848            parent = editor.dom.getParent( node, 'p' );
    4949
Note: See TracChangeset for help on using the changeset viewer.
OSZAR »