首页建站经验 dede后台编辑器改成百度编辑器的修改方法

dede后台编辑器改成百度编辑器的修改方法

首先下载百度编辑器,点击进行下载,将ueditor文件夹上传到include目录,打开include/inc/inc_fun_funAdmin.php文件,找到以下代码:
        $GLOBALS['tools'] = empty($too…

首先下载百度编辑器,点击进行下载,将ueditor文件夹上传到include目录,打开include/inc/inc_fun_funAdmin.php文件,找到以下代码:
        $GLOBALS['tools'] = empty($toolbar[$etype])? $GLOBALS['tools'] : $toolbar[$etype] ;
        $config['toolbar'] = $GLOBALS['tools'];
        $config['height'] = $nheight;
        $config['skin'] = 'kama';
        $CKEditor->returnOutput = TRUE;
        $code = $CKEditor->editor($fname, $fvalue, $config, $events);
        if($gtype=="print")
        {
            echo $code;
        }
        else
        {
            return $code;
        }
    }
在以上代码的后面添加以下代码:
else if($GLOBALS['cfg_html_editor']=='ueditor')
{
        $fvalue = $fvalue=='' ? '

' : $fvalue;
        $code = '<script type="text/javascript" charset="gbk" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/editor_config.js">
        <script type="text/javascript" charset="gbk" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/editor_all_min.js">
       
<script type="text/javascript">
    uParse(".content",{
        "liiconpath":"/include/ueditor/themes/ueditor-list/" 
    })
       
                 <script  id="editor" name="body" type="text/plain">'.$fvalue.'
        <script type="text/javascript">
var ue = UE.getEditor('editor');
UE.getEditor('editor');
';
        if($gtype=="print")
        {
                echo $code;
        }
        else
        {
                return $code;
        }
}
然后修改编辑器配置:/include/ueditor/editor_config.js,找到以下代码:
window.UEDITOR_HOME_URL = "/xxxx/xxxx/";
将以上代码替换成以下代码:
window.UEDITOR_HOME_URL = "/include/ueditor/";
最后在后台设置 系统基本参数 核心设置 把编辑器fck修改成ueditor.
本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/jianzhan/jingyan/19713.html
上一篇网站服务管理系统wdcp简介及使用手册
下一篇 网站验证码总是错误,验证码错误的解决办法
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部