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

WBOY
Release: 2016-05-17 09:40:16
Original
895 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!