CKeditor编辑模板文件的方法(默认源码模式编辑)?

WBOY
Release: 2016-06-23 14:08:57
Original
2217 people have browsed it

想用Ckeditor进行模板html源文件编辑
由文本模式切换到源码模式编辑后,一旦再由文本模式切回源码模式,就会出现很多像

 这样的多余字符;
不知哪位高手知道怎么设置默认源码模式?
如有更好的模板在线编辑方法也请不吝赐教!


回复讨论(解决方案)

想用Ckeditor进行模板html源文件编辑
由文本模式切换到源码模式编辑后,一旦再由文本模式切回源码模式,就会出现很多像

这样的多余字符;
不知哪位高手知道怎么设置默认源码模式?
如有更好的模板在线编辑方法也请不吝赐教!

这是FCK自动生成的,一般都是默认都不是HTML源码形式的。
即使你是源码编辑模式,你提交的时候也会自动过滤的。
另外 & 是表示 & ,如果不要你应该直接删除这个“&”,如果不要 “ ”,两个字之间就不能有空格。

最近也遇到了这个问题,经过测试这种情况是由于在进行源码编辑的时候的,代码不规范造成的
比如将,等应该写在

之间的标签写到了标签里面,就会造成这种情况
解决这个问题就必须要求进行源码编辑时规范代码,按照html的规范编写

刚好也遇到了这个问题
我用下面的方法解决的,求批评
config.startupMode ='source';
config.toolbar =[];

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!