• DedeCMS整合百度ueditor编辑器


    DedeCMS版本:UTF-8 V5.7.101正式版(更新日期:2022-09-30)   官方下载

    Ueditor版本:UTF-8  v1.4.3.3   官方下载

    一、整合编辑器

    1、将Ueditor下载后解压,并且修改文件夹名为:ueditor

    2、将 ueditor 文件夹复制到 DedeCMS 路径下的 include 文件夹下

    3、修改 \include\inc\inc_fun_funAdmin.php 文件
     

    在当前文件的187行代码  else if($GLOBALS['cfg_html_editor']=='ckeditor') 的上方增加以下代码

    1. // 百度ueditor编辑器----开始
    2. else if($GLOBALS['cfg_html_editor']=='ueditor')
    3. {
    4. $fvalue = $fvalue=='' ? '

      '
      : $fvalue;
    5. $code = '
    6. href="/include/ueditor/themes/default/css/ueditor.css"/>
    7. ';
    8. if($gtype=="print")
    9. {
    10. echo $code;
    11. }
    12. else
    13. {
    14. return $code;
    15. }
    16. }
    17. // 百度ueditor编辑器----结束

    如图所示:

     4、修改完毕后,进入DedeCMS后台:系统 —> 系统基本参数 —> 核心设置 —> html编辑器支持
    填写:ueditor  点击确定后进入:生成 —> 更新系统缓存

    二、修改图片保存路径

    1、修改 \include\ueditor\php\config.json 文件,将该文件中所有 /ueditor/php/upload (一共8处)修改为自定义的路径即可

    三、Ueditor七牛云存储版本

    如果需要站点图片保存到七牛云存储可以使用此版本
    下载地址:https://codeload.github.com/widuu/qiniu_ueditor_1.4.3/zip/refs/tags/0.01


     

  • 相关阅读:
    ShardingJDBC配置读写分离
    收录一些常见的算法题型
    vue根据接口数据配置动态路由(动态配置后台管理系统路由权限)
    基于LINUX的TCP协WireShark抓包分析
    优化程序性能
    Sprint framework Day07:注解结合 xml 配置
    conda init 导致的 powershell 启动缓慢的问题(Loading personal and system profiles took xxxx ms.)
    【面试题】智力题
    安全保障基于软件全生命周期-PSP应用
    CFDer工资待遇好吗?我爬取了某招聘网站之后
  • 原文地址:https://blog.csdn.net/edsoki/article/details/127400011