Home  >  Article  >  php教程  >  dedecms防止FCK乱格式化你的代码的修改方法

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

WBOY
WBOYOriginal
2016-06-13 12:32:23975browse

默认的情况下,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恶搞了 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn