Changeset 36720
- Timestamp:
- 02/26/2016 01:55:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
r36719 r36720 236 236 node = firstTextNode( start ), 237 237 i = enterPatterns.length, 238 text, pattern ;238 text, pattern, parent; 239 239 240 240 if ( ! node ) { … … 274 274 node.replaceData( 0, node.data.length, ltrim( node.data.slice( pattern.start.length ) ) ); 275 275 } else if ( pattern.element ) { 276 editor.getBody().replaceChild( document.createElement( pattern.element ), node.parentNode ); 276 parent = node.parentNode && node.parentNode.parentNode; 277 278 if ( parent ) { 279 parent.replaceChild( document.createElement( pattern.element ), node.parentNode ); 280 } 277 281 } 278 282 } );
Note: See TracChangeset
for help on using the changeset viewer.