进行了一些小修复

This commit is contained in:
kate522 committed 2026-08-26 17:57:29 +08:00
1 parent 1f84e6aa18
commit fb2bbb64c5
8 files changed
+630 -54

No files matched your search

+6 -2
View File
@@ -47,11 +47,15 @@ $is_can_new = !empty($ctx['is_can_new']);
if (!empty($ctx['can_upload_img'])) {
$toolbar1[] = 'aksrt_image';
}
$toolbar1[] = 'aksrt_video';
if (!empty($ctx['can_upload_file'])) {
$toolbar1[] = 'aksrt_file';
}
if (!empty($ctx['can_hide'])) {
$toolbar1[] = 'aksrt_hide';
}
$toolbar1 = implode(',', array_merge($toolbar1, ['blockquote', 'code', 'fullscreen']));
$plugins = 'paste,link,lists,fullscreen,wordpress,wplink,charmap';
$toolbar1 = implode(',', array_merge($toolbar1, ['aksrt_quote', 'aksrt_precode', 'fullscreen']));
$plugins = 'paste,link,lists,fullscreen,wordpress,wplink,charmap,colorpicker,textcolor';
$editor_plugin_path = get_template_directory() . '/assets/js/front-submit-editor.js';
$editor_plugin_url = get_template_directory_uri() . '/assets/js/front-submit-editor.js';
if (file_exists($editor_plugin_path)) {