dedecms更换百度编辑器操作栏目时,无法保存栏目的第三个选项,内容,
下面我针对这个BUG做出2种修改方案。
第一种,换回之前的ckediter编辑器
文件位置:/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 文件 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;经测试会出现标签无法点击的问题!
查看更多关于dedecms更换百度UEditor编辑器后栏目内容无法保存的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did5516