|
5 | 5 | window.wp = window.wp || {}; |
6 | 6 |
|
7 | 7 | ( function( $, wp ) { |
8 | | - wp.editor = wp.editor || {}; |
| 8 | + wp.editor = wp.oldEditor = wp.oldEditor || {}; |
9 | 9 |
|
10 | 10 | /** |
11 | 11 | * Utility functions for the editor. |
@@ -1191,8 +1191,8 @@ window.wp = window.wp || {}; |
1191 | 1191 | } ); |
1192 | 1192 | } |
1193 | 1193 |
|
1194 | | - wp.editor.autop = wpautop; |
1195 | | - wp.editor.removep = pre_wpautop; |
| 1194 | + wp.oldEditor.autop = wpautop; |
| 1195 | + wp.oldEditor.removep = pre_wpautop; |
1196 | 1196 |
|
1197 | 1197 | exports = { |
1198 | 1198 | go: switchEditor, |
@@ -1241,15 +1241,15 @@ window.wp = window.wp || {}; |
1241 | 1241 | * } |
1242 | 1242 | * } |
1243 | 1243 | */ |
1244 | | - wp.editor.initialize = function( id, settings ) { |
| 1244 | + wp.oldEditor.initialize = function( id, settings ) { |
1245 | 1245 | var init; |
1246 | 1246 | var defaults; |
1247 | 1247 |
|
1248 | | - if ( ! $ || ! id || ! wp.editor.getDefaultSettings ) { |
| 1248 | + if ( ! $ || ! id || ! wp.oldEditor.getDefaultSettings ) { |
1249 | 1249 | return; |
1250 | 1250 | } |
1251 | 1251 |
|
1252 | | - defaults = wp.editor.getDefaultSettings(); |
| 1252 | + defaults = wp.oldEditor.getDefaultSettings(); |
1253 | 1253 |
|
1254 | 1254 | // Initialize TinyMCE by default. |
1255 | 1255 | if ( ! settings ) { |
@@ -1349,13 +1349,13 @@ window.wp = window.wp || {}; |
1349 | 1349 | /** |
1350 | 1350 | * Remove one editor instance. |
1351 | 1351 | * |
1352 | | - * Intended for use with editors that were initialized with wp.editor.initialize(). |
| 1352 | + * Intended for use with editors that were initialized with wp.oldEditor.initialize(). |
1353 | 1353 | * |
1354 | 1354 | * @since 4.8.0 |
1355 | 1355 | * |
1356 | 1356 | * @param {string} id The HTML id of the editor textarea. |
1357 | 1357 | */ |
1358 | | - wp.editor.remove = function( id ) { |
| 1358 | + wp.oldEditor.remove = function( id ) { |
1359 | 1359 | var mceInstance, qtInstance, |
1360 | 1360 | $wrap = $( '#wp-' + id + '-wrap' ); |
1361 | 1361 |
|
@@ -1388,14 +1388,14 @@ window.wp = window.wp || {}; |
1388 | 1388 | /** |
1389 | 1389 | * Get the editor content. |
1390 | 1390 | * |
1391 | | - * Intended for use with editors that were initialized with wp.editor.initialize(). |
| 1391 | + * Intended for use with editors that were initialized with wp.oldEditor.initialize(). |
1392 | 1392 | * |
1393 | 1393 | * @since 4.8.0 |
1394 | 1394 | * |
1395 | 1395 | * @param {string} id The HTML id of the editor textarea. |
1396 | 1396 | * @return The editor content. |
1397 | 1397 | */ |
1398 | | - wp.editor.getContent = function( id ) { |
| 1398 | + wp.oldEditor.getContent = function( id ) { |
1399 | 1399 | var editor; |
1400 | 1400 |
|
1401 | 1401 | if ( ! $ || ! id ) { |
|
0 commit comments