summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/videopress/js/editor-view.js')
-rw-r--r--plugins/jetpack/modules/videopress/js/editor-view.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/videopress/js/editor-view.js b/plugins/jetpack/modules/videopress/js/editor-view.js
index c77f5b6a..9f64859f 100644
--- a/plugins/jetpack/modules/videopress/js/editor-view.js
+++ b/plugins/jetpack/modules/videopress/js/editor-view.js
@@ -1,6 +1,9 @@
/* global tinyMCE, vpEditorView */
(function( $, wp, vpEditorView ){
wp.mce = wp.mce || {};
+ if ( 'undefined' === typeof wp.mce.views ) {
+ return;
+ }
wp.mce.videopress_wp_view_renderer = {
shortcode_string : 'videopress',
shortcode_data : {},