详情页

帝国CMS后台修改编辑器为百度ueditor编辑器

时间:2022年07月10日

编辑:佚名

帝国CMS 后台集成百度ueditor编辑器
1、根据自己网站程序下载对应版本的百度ueditor编辑器;
2、上传至帝国CMS的/e/data/ecmseditor/下,把文件夹命名为ueditor;
3、修改字段输入表单,具体操作:系统-->新建表与系统模型-->管理数据表-->管理字段

4、将下列代码复制入下图所示红框内:

<script type="text /javascript" src="/e/data/ecmseditor/ueditor/ueditor.config.js"></script>
<script type="text /javascript" src="/e/data/ecmseditor/ueditor/ueditor.all.js"></script>
<link rel="stylesheet" href=" /e/data/ecmseditor/ueditor/themes/default/ueditor.css">
<script type="text /plain" id="myEditor"  name="newstext">
<?= $ecmsfirstpost == 1 ? "" : stripSlashes($r[newstext]) ?>
</script>
<script type="text /javascript">
    var editor = new baidu.editor.ui.Editor();
    editor.render("myEditor");
    editor.classid = 
<?= $classid ?>;
    editor.filepass = 
<?= $filepass ?>;
</script>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
        <tr>
                <td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1" <?=$r[dokey]==1?' checked':''?>>
                        关键字替换 <input name="copyimg" type="checkbox" id="copyimg" value="1">
                        远程保存图片(
                        <input name="mark" type="checkbox" id="mark" value="1">
                        <a href="SetEnews.php" target="_blank">加水印</a>)
                        <input name="copyflash" type="checkbox" id="copyflash" value="1">
                        远程保存FLASH(地址前缀:
                        <input name="qz_url" type="text" id="qz_url" size="">
                        )
                    </td>
            </tr>
        <tr>
                <td bgcolor="#FFFFFF">
            <input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页
                        <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页
                        ,每
                        <input name="autosize" type="text" id="autosize" value="5000" size="5">
                        个字节为一页 取第
                        <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
                        张上传图为标题图片(
                        <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
                        缩略图: 宽
                        <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3"
                                value="<?=$public_r[spicwidth]?>">
                        *高
                        <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3"
                                value="<?=$public_r[spicheight]?>">
                        )
                    </td>
            </tr>
</table>
相关文章
猜你需要