Fix inappropriate loading of disabled image_link editor component (78d1b6966a 보완)

This commit is contained in:
Kijin Sung 2022-02-25 14:50:57 +09:00
parent 34c46a08c6
commit f35dfcf2bb

View file

@ -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();