By default, FCK turns on the XHTML formatting option. Therefore, when some people use visual editing to change the 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; // Unsupported: Do not change.
FCKConfig.EnableSourceXHTML = true; // Unsupported: Do not change.
Change to
FCKConfig. EnableXHTML = false ; // Unsupported : Do not change.
FCKConfig.EnableSourceXHTML = false ; // Unsupported: Do not change.
Then delete the temporary files of your browser and refresh the current page. You will find that you are no longer being pranked by FCK.
The above introduces the modification method of dedecms enterprise template dedecms to prevent FCK from formatting your code randomly, including the content of dedecms enterprise template. I hope it will be helpful to friends who are interested in PHP tutorials.