UEditor小记

1.不将div标签转换为p标签

allowDivTransToP: false

2.过滤样式时不删除标签

removeFormatTags:''

// 默认:
//'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'

3.不过滤style

removeFormatAttributes:''

// 默认:'class,style,lang,width,height,align,hspace,valign'

4.换行加<p>标签改为<br>

enterTag: 'br'

ul会加上list-paddingleft-2,这个除了改源码暂时没辙...

Comments
Write a Comment