mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
Add upload button to CKEditor image dialog
This commit is contained in:
parent
0c3879d0c8
commit
7af4f93175
3 changed files with 13 additions and 7 deletions
|
|
@ -11,6 +11,7 @@ $ckconfig->toolbar = $editor_toolbar ?? 'default';
|
|||
$ckconfig->hide_toolbar = $editor_toolbar_hide ?? false;
|
||||
$ckconfig->focus = $editor_focus ?? false;
|
||||
$ckconfig->ios_patch = (bool)preg_match('/i(Phone|Pad|Pod)/', $_SERVER['HTTP_USER_AGENT'] ?? '');
|
||||
$ckconfig->allow_upload = $allow_fileupload ?? false;
|
||||
|
||||
// Plugin configuration
|
||||
$ckconfig->add_plugins = $editor_additional_plugins ?: [];
|
||||
|
|
|
|||
|
|
@ -52,7 +52,8 @@ $(function() {
|
|||
language: config.language,
|
||||
iframe_attributes: {},
|
||||
versionCheck: false,
|
||||
xe_editor_sequence: editor_sequence
|
||||
rx_allow_upload: config.allow_upload,
|
||||
xe_editor_sequence: editor_sequence,
|
||||
},
|
||||
loadXeComponent: true,
|
||||
enableToolbar: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue