mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
#1087 CK에디터 설정을 /common/js/plugins/ckeditor/ckeditor/config.js 통해 변경할 수 있도록 개선
This commit is contained in:
parent
3658d6ad2a
commit
1592ae6509
2 changed files with 65 additions and 24 deletions
|
|
@ -34,39 +34,46 @@
|
|||
|
||||
// editor
|
||||
$(function(){
|
||||
var ckconfig = {
|
||||
height: '{$editor_height}',
|
||||
skin: '{$colorset}',
|
||||
contentsCss: '{$content_style_path}/editor.css',
|
||||
xe_editor_sequence: {$editor_sequence}
|
||||
var settings = {
|
||||
ckeconfig: {
|
||||
height: '{$editor_height}',
|
||||
skin: '{$colorset}',
|
||||
contentsCss: '{$content_style_path}/editor.css',
|
||||
xe_editor_sequence: {$editor_sequence},
|
||||
toolbarCanCollapse: true
|
||||
},
|
||||
loadXeComponent: true,
|
||||
enableToolbar: true,
|
||||
content_field: jQuery('[name={$editor_content_key_name}]')
|
||||
};
|
||||
<!--@if($enable_component)-->
|
||||
ckconfig.extraPlugins = 'xe_component';
|
||||
|
||||
<!--@if($enable_component)-->
|
||||
{@ $xe_component = array(); }
|
||||
<!--@foreach($component_list as $component_name => $component)-->
|
||||
{@ $xe_component[] = $component_name . ":'" . htmlentities($component->title, ENT_QUOTES) . "'"; }
|
||||
<!--@endforeach-->
|
||||
{@ $xe_component = implode(',', $xe_component); }
|
||||
|
||||
ckconfig.xe_component_arrays = {{$xe_component}};
|
||||
settings.ckeconfig.xe_component_arrays = {{$xe_component}};
|
||||
<!--@endif-->
|
||||
|
||||
<!--@if(!$enable_default_component)-->
|
||||
ckconfig.toolbar = [];
|
||||
ckconfig.toolbarCanCollapse = false;
|
||||
settings.enableToolbar: false,
|
||||
settings.ckeconfig.toolbarCanCollapse = false;
|
||||
<!--@endif-->
|
||||
|
||||
<!--@if(!$enable_component)-->
|
||||
settings.loadXeComponent = false;
|
||||
<!--@endif-->
|
||||
|
||||
<!--@if($module_type === 'comment')-->
|
||||
ckconfig.toolbarStartupExpanded = false;
|
||||
settings.ckeconfig.toolbarStartupExpanded = false;
|
||||
<!--@endif-->
|
||||
|
||||
<!--@if($css_content)-->CKEDITOR.addCss('{$css_content}');<!--@end-->
|
||||
|
||||
$('#ckeditor_instance_{$editor_sequence}').XeCkEditor({
|
||||
ckeconfig : ckconfig,
|
||||
content_field: jQuery('[name={$editor_content_key_name}]')
|
||||
});
|
||||
var ckeApp = $('#ckeditor_instance_{$editor_sequence}').XeCkEditor(settings);
|
||||
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue