使用ueditor,因為要去除word、excel中的樣式,所以在ueditor.config.js中,打開了:
“去除標簽所有屬性”
,retainOnlyLabelPasted: true
但想保留一部分標簽中的屬性,如td,th中的colspan, rowspan
求大神指點,要如何配置?
uj5u.com熱心網友回復:
ueditor.config.js,第366行開始,配置屬性白名單uj5u.com熱心網友回復:
配置中是沒有的,在原始碼的的 paste.js中,找到 getPureHtml函式,加上判斷或者修改正則代碼即可
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/28880.html
標籤:JavaScript
