大佬教程收集整理的这篇文章主要介绍了织梦ckeditor更换为ueditor百度编辑器,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
织梦ckeditor更换为ueditor百度编辑器(@L_772_1@图片水印和多个百度编辑器同时使用)
织梦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') |
在它上面加入
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; } } |
3、后台-系统-系统基本参数-核心设置-Html编辑器 ,选择 ueditor
打开
/dede/templets/catalog_add.htm /dede/templets/catalog_edit.htm |
把里面的 form 放置到 <td height="95" align="center" bgcolor="#FFFFFF"> 内,就可以了。
打开 /include/ueditor/PHP/action_upload.PHP 找到
在它下面加入
打开 /include/ueditor/PHP/Uploader.class.PHP 找到 大概在124行左右
$this->stateInfo = $this->stateMap[0]; |
在它下面加入
@WaterImg($this->filePath,'down'); |
全部完成。
以上是大佬教程为你收集整理的织梦ckeditor更换为ueditor百度编辑器全部内容,希望文章能够帮你解决织梦ckeditor更换为ueditor百度编辑器所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。