Changeset 51416
- Timestamp:
- 07/13/2021 01:44:07 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/js/_enqueues/wp/widgets/text.js
r50420 r51416 162 162 } 163 163 } else if ( control.editor && ! control.editorFocused && syncInput.val() !== control.fields.text.val() ) { 164 control.editor.setContent( wp. editor.autop( syncInput.val() ) );164 control.editor.setContent( wp.oldEditor.autop( syncInput.val() ) ); 165 165 } 166 166 }, … … 238 238 // The user has disabled TinyMCE. 239 239 if ( typeof window.tinymce === 'undefined' ) { 240 wp. editor.initialize( id, {240 wp.oldEditor.initialize( id, { 241 241 quicktags: true, 242 242 mediaButtons: true … … 249 249 if ( tinymce.get( id ) ) { 250 250 restoreTextMode = tinymce.get( id ).isHidden(); 251 wp. editor.remove( id );251 wp.oldEditor.remove( id ); 252 252 } 253 253 … … 263 263 } ); 264 264 265 wp. editor.initialize( id, {265 wp.oldEditor.initialize( id, { 266 266 tinymce: { 267 267 wpautop: true
Note: See TracChangeset
for help on using the changeset viewer.