织梦更换Ueditor编辑器后栏目内容提交更新失败

今天在使用网友的相关经验《百度编辑器(Ueditor)整合到dedecms》,给织梦dedecms系统更换编辑器后,文章编辑器使用正常,在编辑栏目内容的时候,出现提交后不更新内容的情况,上网查相关文章,得出解决办法如下;

一、在栏目内容编辑里替换回默认的ckeditor编辑器;

文件位置:/dede/templates/catalog_edit.htm、/dede/templates/catalog_add.htm

查找:

GetEditor("content","","450","Default","print","false");

在此上面插入红色的代码部分;

<?php
$GLOBALS['cfg_html_editor']='ckeditor';
                GetEditor("content","","450","Default","print","false");
                ?>
 
二、完全使用Ueditor编辑器,不替换回原来的默认编辑器
 
文件位置/dede/templates
文件templets_one_edit.htm、templets_one_add.htm、catalog_edit.htm、catalog_add.htm
 
查找
function checkSubmit(){  if(document.form1.typename.value==""){         alert("栏目名称不能为空!");         document.form1.typename.focus();         return false;    }    return true;}在函数最后的 return true();前加一行:document.form1.content.value = document.getElementById("baidu_editor_0").contentWindow.document.body.innerHTML;

本文转载自 深圳市乐道网络科技(www.ledaokj.com) 详文参考:http://www.ledaokj.com/a-wlyx/176/524.html

上一篇:jenkis编译报错:需要class,interface或enum


下一篇:Java设计模式之《职责链模式》及应用场景