mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix inappropriate loading of disabled image_link editor component (78d1b6966a 보완)
This commit is contained in:
parent
34c46a08c6
commit
f35dfcf2bb
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue