欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

dedecms防止FCK乱格式化你的代码的修改方法

程序员文章站 2022-11-25 17:56:28
默认的情况下,fck开启了xhtml格式化的选项,因此,有些人用可视化编辑更改完整的html文件的时候,head部份可能会被改得不像人样,解决办法如下: 打开 i...
默认的情况下,fck开启了xhtml格式化的选项,因此,有些人用可视化编辑更改完整的html文件的时候,head部份可能会被改得不像人样,解决办法如下:
打开 include/fckeditor/fckconfig.js
找到
fckconfig.enablexhtml        = true;    // unsupported: do not change.
fckconfig.enablesourcexhtml    = true ;    // unsupported: do not change.

改为
fckconfig.enablexhtml        = false ;    // unsupported: do not change.
fckconfig.enablesourcexhtml    = false ;    // unsupported: do not change.

然后删除你浏览器的临时文件,刷新当前页面,你会发现,不再被fck恶搞了