commit 881fbd8b60349890fbdb5b3076f552ece25f07e2 Author: Joel Pittet Date: Tue Jan 28 10:50:49 2014 -0800 4 diff --git a/modules/media_wysiwyg/wysiwyg_plugins/media_ckeditor/library.js b/modules/media_wysiwyg/wysiwyg_plugins/media_ckeditor/library.js index 3696105..9f24dbc 100644 --- a/modules/media_wysiwyg/wysiwyg_plugins/media_ckeditor/library.js +++ b/modules/media_wysiwyg/wysiwyg_plugins/media_ckeditor/library.js @@ -70,7 +70,7 @@ ckeditorInstance.insertElement(editorElement); // Initialize widget on our html if possible. - if (parseFloat(CKEDITOR.version) >= 4.3 && typeof(CKEDITOR.plugins.registered.widget) != 'undefined') { + if (parseFloat(CKEDITOR.version) >= 4.3 && hasWidgetSupport) { ckeditorInstance.widgets.initOn( editorElement, 'mediabox' ); } },