Fix #494 add option to control auto-insertion of images in editor

This commit is contained in:
Kijin Sung 2016-12-18 00:24:59 +09:00
parent a8a85bd7cb
commit cd80bcb3a7
8 changed files with 40 additions and 5 deletions

View file

@ -126,7 +126,7 @@ var auto_saved_msg = "{$lang->msg_auto_saved}";
settings.loadXeComponent = false;
<!--@endif-->
<!--@if($module_type === 'comment' || $m)-->
<!--@if($module_type === 'comment' || Rhymix\Framework\UA::isMobile())-->
settings.ckeconfig.toolbarStartupExpanded = false;
<!--@endif-->

View file

@ -56,7 +56,8 @@
// uploader
var setting = {
maxFileSize: {$logged_info->is_admin === 'Y' ? 0 : $file_config->allowed_filesize},
maxChunkSize: {$file_config->allowed_chunk_size},
maxChunkSize: {$file_config->allowed_chunk_size ?: 0},
autoinsertImage: {json_encode($editor_autoinsert_image ?: 'paragraph')},
singleFileUploads: true
};
$container = $('#xefu-container-{$editor_sequence}');