refactor(admin): change default editor from ueditor to wangEditor
Due to the recommendation for better performance and user experience, the default editor in both configuration files and view templates has been switched from ueditor to wangEditor. The code changes reflect this update by marking ueditor as '(不建议使用)' (not recommended) and WangEditor as '(推荐使用)' (recommended). Additionally, the relevant controller file has been updated to ensure that the correct default editor is loaded based on the new configuration setting.
This commit is contained in:
@@ -27,9 +27,9 @@ return [
|
||||
|
||||
// 默认编辑器
|
||||
'editor_types' => [
|
||||
'ueditor' => '百度编辑器',
|
||||
'ueditor' => '百度编辑器(不建议使用)',
|
||||
'ckeditor' => 'CK编辑器',
|
||||
'wangEditor' => 'wangEditor',
|
||||
'wangEditor' => 'wangEditor(推荐使用)',
|
||||
],
|
||||
|
||||
];
|
||||
@@ -62,7 +62,7 @@
|
||||
<input type="radio" name="editor_type" lay-filter="editor_type" value="{$key}" title="{$val}" {if $key==sysConfig('site','editor_type')}checked=""{/if}>
|
||||
{/foreach}
|
||||
<br>
|
||||
<tip>默认百度编辑器。</tip>
|
||||
<tip>默认推荐编辑器。</tip>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ class AdminController extends BaseController
|
||||
'isSuperAdmin' => $isSuperAdmin,
|
||||
'version' => env('APP_DEBUG') ? time() : ConfigService::getVersion(),
|
||||
'adminUploadUrl' => url('ajax/upload', [], false),
|
||||
'adminEditor' => sysConfig('site', 'editor_type') ?: 'ueditor',
|
||||
'adminEditor' => sysConfig('site', 'editor_type') ?: 'wangEditor',
|
||||
];
|
||||
View::assign($data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user