织梦ckeditor更换为ueditor百度编辑器(支持图片水印和多个百度编辑器同时使用)
织梦ueditor打包下载
链接: https://pan.baidu.com/s/1iTPuFXSkgXdKhbPaHParyg 提取码: 5ubw 复制这段内容后打开百度网盘
1、把下载的zip解压得到ueditor文件夹,把解压到的ueditor文件夹扔进你网站的include文件夹去
2、打开 /include/inc/inc_fun_funadmin.PHP 找到
else if($GLOBALS['cfg_HTML_editor']=='ckeditor')@H_403_16@ |
在它上面加入
else if($GLOBALS['cfg_HTML_editor']=='ueditor'){ $fvalue = $fvalue=='' ? '<p></p>' : $fvalue; $code = '<script type="text/JavaScript" charset="utf-8" src="'.$GLOBALS['cfg_CMSpath'].'/include/ueditor/jquery.min.Js"></script><!--需要jquery解决多个百度编辑器同时使用-->'; $code .= '<script type="text/JavaScript" charset="utf-8" src="'.$GLOBALS['cfg_CMSpath'].'/include/ueditor/ueditor.config.Js"></script>'; $code .= '<script type="text/JavaScript" charset="utf-8" src="'.$GLOBALS['cfg_CMSpath'].'/include/ueditor/ueditor.all.min.Js"></script>'; $code .= '<script type="text/JavaScript" charset="utf-8" src="'.$GLOBALS['cfg_CMSpath'].'/include/ueditor/lang/zh-cn/zh-cn.Js"></script>'; $code .= '<link rel="stylesheet" type="text/CSS" href="'.$GLOBALS['cfg_CMSpath'].'/include/ueditor/themes/default/CSS/ueditor.CSS"/>'; $code .= '<script type="text/plain" name="'.$fname.'" ID="'.$fname.'">'.$fvalue.'</script>'; if($bbcode) { $code .= '<script type="text/JavaScript">jquery.noConflict();jquery(function(){var ue = UE.getEditor("'.$fname.'",{toolbars:[["Source","|","bold","italic","underline","Fontsize","forecolor","emotion","Undo","Redo"]],initialFrameHeight:100});});</script>'; } else { $code .= '<script type="text/JavaScript">jquery.noConflict();jquery(function(){var ue = UE.getEditor("'.$fname.'",{initialFrameHeight:450});});</script>'; } if($gtype=="print") { echo $code; } else { return $code; }}@H_403_16@ |
3、后台-系统-系统基本参数-核心设置-HTML编辑器 ,选择 ueditor
更换ueditor后栏目内容、单页无法保存问题的解决方法
打开
/dede/templets/catalog_add.htm/dede/templets/catalog_edit.htm@H_403_16@ |
把里面的 form 放置到 <td height="95" align="center" bgcolor="#FFFFFF"> 内,就可以了。
本地上传图片添加水印的解决方法打开 /include/ueditor/PHP/action_upload.PHP 找到
include "Uploader.class.PHP";@H_403_16@ |
在它下面加入
require_once("../../common.inc.PHP");require_once("../../image.func.PHP");@H_403_16@ |
打开 /include/ueditor/PHP/Uploader.class.PHP 找到 大概在124行左右
$this->stateInfo = $this->stateMap[0];@H_403_16@ |
在它下面加入
@Waterimg($this->filePath,'down');@H_403_16@ |
全部完成。
上一篇:织梦软件模型的软件描述字数限制的解决教程
下一篇:织梦DedeCMS删除自定义变量的教程
@H_403_21@ 总结以上是内存溢出为你收集整理的织梦ckeditor更换为ueditor百度编辑器全部内容,希望文章能够帮你解决织梦ckeditor更换为ueditor百度编辑器所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)