DedeCMS version: UTF-8 V5.7.101 official version (updated date: 2022-09-30) official download
Ueditor version: UTF-8 v1.4.3.3 official download
1. Integrated editor
1. Download Ueditor and unzip it, and modify the folder name: ueditor
2. Copy the ueditor folder to the include folder under the DedeCMS path
3, modified \include\inc\inc_fun_funAdmin.php text
Add the following code above the 187 lines of code else if($GLOBALS['cfg_html_editor']=='ckeditor') in the current file
// 百度ueditor编辑器----开始
else if($GLOBALS['cfg_html_editor']=='ueditor')
{
$fvalue = $fvalue=='' ? '<p></p>' : $fvalue;
$code = '<script type="text/javascript" charset="utf-8"
src="/include/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="/include/ueditor/ueditor.all.js"></script>
<link rel="stylesheet" type="text/css"
href="/include/ueditor/themes/default/css/ueditor.css"/>
<textarea name="'.$fname.'" id="'.$fname.'"
style="width:100%;height: 600px;">'.$fvalue.'</textarea>
<script type="text/javascript">var ue = new
baidu.editor.ui.Editor();ue.render("'.$fname.'");</script>';
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}
// 百度ueditor编辑器----结束
as the picture shows:
4. After modification, enter the DedeCMS background: System —> System Basic Parameters —> Core Settings —> HTML Editor Support Fill
in: ueditor Click OK and enter: Generate —> Update System Cache
2. Modify the image save path
1. Modify the \include\ueditor\php\config.json file, and modify all /ueditor/php/upload (a total of 8 places) in the file to a custom path
3. Ueditor Qiniu cloud storage version
If you need to save the site picture to Qiniu cloud storage, you can use this version
Download link: https://codeload.github.com/widuu/qiniu_ueditor_1.4.3/zip/refs/tags/0.01