mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix image_link editor component popup loading even if image_link component is disabled
This commit is contained in:
parent
e3541c046b
commit
78d1b6966a
2 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ CKEDITOR.plugins.add('xe_component', {
|
|||
}
|
||||
|
||||
if(!element) element = evt.data.element;
|
||||
if(!editor_component && element && element.is('img')) {
|
||||
if(!editor_component && element && element.is('img') && typeof config.xe_component_arrays.image_link !== 'undefined') {
|
||||
editor_component = 'image_link';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -148,6 +148,8 @@ var auto_saved_msg = "{$lang->msg_auto_saved}";
|
|||
{@ $xe_component = implode(',', $xe_component); }
|
||||
|
||||
settings.ckeconfig.xe_component_arrays = {{$xe_component}};
|
||||
<!--@else-->
|
||||
settings.ckeconfig.xe_component_arrays = {};
|
||||
<!--@endif-->
|
||||
|
||||
<!--@if(!$enable_default_component)-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue