Commit 615ed4bd authored by git's avatar git Committed by Robert Ragas

Issue #2701091 by KittenDestroyer: CKEditor openDialog break if Yoast module is enabled

parent 7c66f281
......@@ -82,7 +82,11 @@
tokens: yoast_settings.tokens,
cookie_data_key: yoast_settings.cookie_data_key
};
var analyser = new YoastSeo.AnalyserEditNode({}, analyzer_options);
//We need only one analyser object to exist on page
if (typeof YoastSEO.app == "undefined") {
var analyser = new YoastSeo.AnalyserEditNode({}, analyzer_options);
}
// Update this.data everytime the field values are modified.
jQuery(window).on('yoast_seo-form_item-changed', function () {
......
......@@ -27,7 +27,6 @@ yoast_seo.edit_node:
- core/jquery.ui.tooltip
- core/backbone
- core/underscore
- ckeditor/drupal.ckeditor
- ckeditor/drupal.ckeditor.admin
- core/drupalSettings
- yoast_seo/yoast_seo_core
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment