Home  >  Article  >  Backend Development  >  How to modify dedecms to prevent FCK from formatting your code randomly_PHP tutorial

How to modify dedecms to prevent FCK from formatting your code randomly_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:56:07794browse

By default, FCK turns on the XHTML formatting option. Therefore, when some people use visual editing to change a complete HTML file, the Head part may be changed to look unnatural. The solution is as follows:
Open Include/fckeditor/fckconfig.js
Find
FCKCONFIG.ENABLEXHTML = TRUE; // Unupported: Do NOT CHANGE.
fckconfig.enablesourcexhtml = true; // unupported: do not change.

Change to
FCKConfig.EnableXHTML = false ; // Unsupported: Do not change.
FCKConfig.EnableSourceXHTML = false ; // Unsupported: Do not change.

Then delete your browser’s temporary file, refresh the current page, and you will find that you are no longer being pranked by FCK.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318144.htmlTechArticleBy default, FCK turns on the XHTML formatting option, so some people use visual editing to change the complete When editing HTML files, the Head part may be changed to look like a human being. The solution is...
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