- Timestamp:
- 06/06/2015 10:37:13 PM (10 years ago)
- File:
-
- 1 edited
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
Note: See TracChangeset
for help on using the changeset viewer.