Skip to content

Commit c9202c3

Browse files
author
azaozz
committed
TinyMCE: check if wp.mce.views exists before loading the wpview plugin. Fixes a js error when the rest of the media scripts are not loaded.
Fixes #36977. git-svn-id: https://develop.svn.wordpress.org/trunk@37597 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 88a30da commit c9202c3

File tree

1 file changed

+1
-1
lines changed
  • src/wp-includes/js/tinymce/plugins/wpview

1 file changed

+1
-1
lines changed

src/wp-includes/js/tinymce/plugins/wpview/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
tinymce.PluginManager.add( 'wpview', function( editor ) {
66
function noop () {}
77

8-
if ( ! wp || ! wp.mce ) {
8+
if ( ! wp || ! wp.mce || ! wp.mce.views ) {
99
return {
1010
getView: noop
1111
};

0 commit comments

Comments
 (0)