ueditor标签属性被过滤掉

做分页编辑的时候分页符_ueditor_page_break_tag_被解析成<hr>而正常应该为<hr class="pagebreak" noshade="noshade" size="5" style="user-select: none;">,里面的标签属性都没过滤掉了,找了半天原因,后来才发现有个配置文件配置了标签的属性,没有配置属性的就被过滤掉了(1.4.3.3版本)

ueditor.config.js文件搜索hr

hr: []

改为

hr:     ['class', 'style','noshade','size'],

再编辑的时候hr的属性就都出来了

猜你喜欢

转载自blog.csdn.net/qq_38475911/article/details/82182883