2021年2月21日 星期日

Views

解決table 內的class 樣式會不見

如果要避免嵌入的CKEditor會自動變更我們設定好的樣式,要在config.js內設定相關屬性,其中config.allowedContent=true。但是因資安疑慮,所以相關設定config.allowedContent=false ,但要多一個標籤設定

  config.extraAllowedContent='figure; figcaption; caption; div(*); p(*); span(*); blockquote(*);table(*)';

table(*)表示可以接受table內添加屬性

沒有留言:

張貼留言