Changeset 36513
- Timestamp:
- 02/12/2016 04:22:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
r33622 r36513 157 157 } 158 158 159 function ltrim( text ) { 160 if ( text ) { 161 return text.replace( /^\s+/, '' ); 162 } 163 164 return ''; 165 } 166 159 167 function enter() { 160 168 if ( refNode ) { … … 163 171 editor.undoManager.transact( function() { 164 172 editor.formatter.apply( refPattern.format, {}, refNode ); 165 refNode.replaceData( 0, refNode.data.length, tinymce.trim( refNode.data.slice( refPattern.start.length ) ) );173 refNode.replaceData( 0, refNode.data.length, ltrim( refNode.data.slice( refPattern.start.length ) ) ); 166 174 } ); 167 175
Note: See TracChangeset
for help on using the changeset viewer.