Fix #1335 support autoinsert option by file type

This commit is contained in:
Kijin Sung 2020-07-03 23:56:37 +09:00
parent 2802c59889
commit 8d05a674f5
8 changed files with 50 additions and 31 deletions

View file

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