Ticket #31441: 31441.12.patch
File 31441.12.patch, 612 bytes (added by , 10 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 ) {