Block Editor: Remove CodeMirror settings.

CodeMirror is no longer used in the block editor, so we don't need to load the settings.

Props noisysocks.
Fixes #45248.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2018-11-01 05:06:44 +00:00
parent 364f935221
commit 12f0039b5c

View File

@ -142,15 +142,6 @@ $meta_box_url = add_query_arg(
wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url );
// Populate default code editor settings by short-circuiting wp_enqueue_code_editor.
wp_add_inline_script(
'wp-editor',
sprintf(
'window._wpGutenbergCodeEditorSettings = %s;',
wp_json_encode( wp_get_code_editor_settings( array( 'type' => 'text/html' ) ) )
)
);
/*
* Initialize the editor.
*/