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:
wolfcode
2024-06-19 15:30:03 +08:00
parent df3571534c
commit 88035326a4
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}