编辑工具增加表格输入菜单,优化表格样式
This commit is contained in:
@@ -24,6 +24,7 @@ func postContentHTMLPolicy() *bluemonday.Policy {
|
||||
"blockquote", "ul", "ol", "li", "table", "thead", "tbody", "tr", "th", "td",
|
||||
"members-only",
|
||||
)
|
||||
p.AllowAttrs("colspan", "rowspan").OnElements("th", "td")
|
||||
p.AllowAttrs(
|
||||
"data-locked", "data-length",
|
||||
"data-code-copy", "data-code-fold", "data-lang", "data-full",
|
||||
|
||||
Reference in New Issue
Block a user