Changeset 32700
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
r32699 r32700 40 40 rng = editor.selection.getRng(); 41 41 node = rng.startContainer; 42 text = node.nodeValue;43 42 44 if ( node.nodeType !== 3 ) {43 if ( ! node || node.nodeType !== 3 ) { 45 44 return; 46 45 } 47 46 47 text = node.nodeValue; 48 48 parent = editor.dom.getParent( node, 'p' ); 49 49 -
trunk/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
r32699 r32700 1 1 ( function( $, QUnit, tinymce, _type, setTimeout ) { 2 2 var editor; 3 4 if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) { 5 return; 6 } 3 7 4 8 function type() {
Note: See TracChangeset
for help on using the changeset viewer.