Ticket #31441: 31441.13.patch
File 31441.13.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
39 39 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 50 50 if ( ! parent ) { -
tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
1 1 ( function( $, QUnit, tinymce, _type, setTimeout ) { 2 2 var editor; 3 3 4 if ( tinymce.Env.ie < 9 ) { 5 return; 6 } 7 4 8 function type() { 5 9 var args = arguments; 6 10