From f35dfcf2bb862914062dea5059f5de1a6a6d2cb4 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 25 Feb 2022 14:50:57 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20inappropriate=20loading=20of=20disabled?= =?UTF-8?q?=20image=5Flink=20editor=20component=20(78d1b6966a=20=EB=B3=B4?= =?UTF-8?q?=EC=99=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/ckeditor/ckeditor/plugins/xe_component/plugin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/js/plugins/ckeditor/ckeditor/plugins/xe_component/plugin.js b/common/js/plugins/ckeditor/ckeditor/plugins/xe_component/plugin.js index 69e6def32..00dd3e501 100644 --- a/common/js/plugins/ckeditor/ckeditor/plugins/xe_component/plugin.js +++ b/common/js/plugins/ckeditor/ckeditor/plugins/xe_component/plugin.js @@ -41,9 +41,12 @@ CKEDITOR.plugins.add('xe_component', { } if(!element) element = evt.data.element; - if(!editor_component && element && element.is('img') && typeof config.xe_component_arrays.image_link !== 'undefined') { + if(!editor_component && element && element.is('img')) { editor_component = 'image_link'; } + if(editor_component && !config.xe_component_arrays[editor_component]) { + editor_component = null; + } if(editor_component) { evt.cancel();