Changeset 51409
- Timestamp:
- 07/12/2021 11:56:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/widgets/text.js
r50420 r51409 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.