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:
@@ -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