芜湖网站开发

芜湖网站开发公司

kindeditor编辑器 html代码过滤参数

发布于:2016/11/25 阅读()次 标签:芜湖网站优化



这是因为3.4版本以前编辑器默认开启了过滤模式(filterMode:true)。当filterMode为true时,编辑器会根据htmlTags设定自动过滤HTML代码,主要是为了生成干净的代码。如果想保留所有HTML,请将filterMode设置成false。如果想保留特定HTML,请将filterMode设置成true后,配置htmlTags属性。从3.4版本开始默认关闭过滤模式,所以要过滤HTML,需要将filterMode设置成true。

 

KE.show({
        id : 'textarea_id',
        filterMode : true // true:开启过滤模式, false:关闭过滤模式
});



上一篇:asp 删除数据库中未记录的图片

下一篇:ASP 字母转换大小写