mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Merge branch 'security/rve-2023-1' into develop
This commit is contained in:
commit
7d148dcfc7
2 changed files with 7 additions and 9 deletions
|
|
@ -208,11 +208,11 @@ class editorModel extends editor
|
|||
// Load editor components.
|
||||
if($option->enable_component)
|
||||
{
|
||||
if(!Context::get('component_list'))
|
||||
{
|
||||
$component_list = self::getComponentList(true);
|
||||
Context::set('component_list', $component_list);
|
||||
}
|
||||
Context::set('component_list', self::getComponentList(true));
|
||||
}
|
||||
else
|
||||
{
|
||||
Context::set('component_list', []);
|
||||
}
|
||||
Context::set('enable_component', $option->enable_component ? true : false);
|
||||
Context::set('enable_default_component', $option->enable_default_component ? true : false);
|
||||
|
|
|
|||
|
|
@ -143,11 +143,9 @@ var auto_saved_msg = "{$lang->msg_auto_saved}";
|
|||
<!--@if($enable_component)-->
|
||||
{@ $xe_component = array(); }
|
||||
<!--@foreach($component_list as $component_name => $component)-->
|
||||
{@ $xe_component[] = $component_name . ":'" . htmlentities($component->title, ENT_QUOTES, 'UTF-8') . "'"; }
|
||||
{@ $xe_component[$component_name] = escape($component->title, false)}
|
||||
<!--@endforeach-->
|
||||
{@ $xe_component = implode(',', $xe_component); }
|
||||
|
||||
settings.ckeconfig.xe_component_arrays = {{$xe_component}};
|
||||
settings.ckeconfig.xe_component_arrays = {json_encode($xe_component)};
|
||||
<!--@else-->
|
||||
settings.ckeconfig.xe_component_arrays = {};
|
||||
<!--@endif-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue