一个程序,好用不好用,都取决于它的编辑器,织梦默认编辑器CKEditor更换为UEditor百度编辑器,织梦ckeditor更换为ueditor百度编辑器,百度编辑器精简版只有 3M 解压在网站根目录即可。
百度编辑器精简版下载
无法上传 mp4 视频的解决办法。
打开后台-系统基本参数-附件设置-允许的多媒体文件类型 添加 |mp4 如果有的就不要加了。
UEditor百度编辑器使用安装教程
1、把下载的压缩包解压到你的网站根目录。
在网站根目录,这个 /ueditor 是正确的路径
注意检查:ueditor 里面不能再包含一层 /ueditor/ueditor (这个是错误的路径)
2、打开 /include/inc/inc_fun_funAdmin.php 找到
function SpGetEditor($fname,$fvalue,$nheight="350",$etype="Basic",$gtype="print",$isfullpage="false",$bbcode=false)
{
...中间省略
}将整个函数,改为
function SpGetEditor($fname,$fvalue,$nheight="350",$etype="Basic",$gtype="print",$isfullpage="false",$bbcode=false)
{
global $cfg_ckeditor_initialized;
if(!isset($GLOBALS['cfg_html_editor']))
{
$GLOBALS['cfg_html_editor']='ueditor';
}
if($gtype=="")
{
$gtype = "print";
}
if($GLOBALS['cfg_html_editor']=='ueditor' || $GLOBALS['cfg_html_editor']=='ckeditor')
{
$fvalue = $fvalue=='' ? '<p></p>' : $fvalue;
$code = '<script type="text/javascript" charset="utf-8" src="/ueditor/jquery.min.js"></script>';
$code .= '<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>';
$code .= '<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"></script>';
$code .= '<script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>';
$code .= '<link rel="stylesheet" type="text/css" href="/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;
}
}
else {
/*
// ------------------------------------------------------------------------
// 设置添加多个编辑器
*/
}
}只要百度编辑器就好了。可以把 include 目录下的 ckeditor目录和kindeditor目录删了,如果有ueditor目录的也可以删了。因为现在的百度编辑器安装在根目录了。
3、后台-系统-系统基本参数-核心设置-Html编辑器 ,填写 ueditor 如下图;字母后面不要有空格啊
ueditor
其实改不改都一样,如果你遇到以下问题;
解决百度编辑器 系统 - 软件频道设置【下载说明】无法保存问题
更换ueditor后栏目内容、单页无法保存问题的解决方法
本地上传图片添加水印的解决方法
更换ueditor后栏目内容、单页无法保存问题的解决方法
打开 /dede/templets/catalog_add.htm
把里面的 form 放置到 <td height="95" align="center" bgcolor="#FFFFFF"> 内,就可以了。
打开 /dede/templets/catalog_edit.htm
把里面的 form 放置到 <td height="95" align="center" bgcolor="#FFFFFF"> 内,就可以了。
本地上传图片添加水印的解决方法
打开 /ueditor/php/action_upload.php 找到
include "Uploader.class.php";
在它下面加入
require_once("../../common.inc.php");
require_once("../../image.func.php");打开 /ueditor/php/Uploader.class.php 找到 大概在124行左右
$this->stateInfo = $this->stateMap[0];
在它下面加入
@WaterImg($this->filePath, 'down');
完成,这样上传本地图片和批量上传图片就自动加水印了。
解决百度编辑器 系统 - 软件频道设置【下载说明】无法保存问题
打开 /dede/templets/soft_config.htm 看到
<form name="form1" action="soft_config.php" method="post"> <input type="hidden" name="dopost" value="save" />
把它们移动到 body 下面,如图;
完成。
本文结束
评论专区







上一篇
发表评论
评论列表(无评论)