Enhance Richtext editor
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
"sup", "sub", "small", "big", "mark", "pre", "code", "kbd", "samp", "var",
|
||||
"ul", "ol", "li", "dl", "dt", "dd",
|
||||
"a", "table", "thead", "tbody", "tfoot", "tr", "th", "td", "caption", "colgroup", "col",
|
||||
"blockquote", "cite", "q", "hr", "details", "summary"
|
||||
"blockquote", "cite", "q", "hr", "details", "summary",
|
||||
"section", "article", "font", "center", "abbr", "dfn", "tt"
|
||||
],
|
||||
"allowedAttributes": {
|
||||
"p": ["class", "style"],
|
||||
@@ -32,12 +33,44 @@
|
||||
"pre": ["class", "style"],
|
||||
"code": ["class", "style"],
|
||||
"details": ["class", "style"],
|
||||
"summary": ["class", "style"]
|
||||
"summary": ["class", "style"],
|
||||
"section": ["class", "style"],
|
||||
"article": ["class", "style"],
|
||||
"font": ["class", "style", "color", "size", "face"],
|
||||
"center": ["class", "style"],
|
||||
"abbr": ["class", "style", "title"],
|
||||
"dfn": ["class", "style"],
|
||||
"tt": ["class", "style"],
|
||||
"b": ["class", "style"],
|
||||
"strong": ["class", "style"],
|
||||
"i": ["class", "style"],
|
||||
"em": ["class", "style"],
|
||||
"u": ["class", "style"],
|
||||
"s": ["class", "style"],
|
||||
"small": ["class", "style"],
|
||||
"big": ["class", "style"],
|
||||
"mark": ["class", "style"],
|
||||
"sup": ["class", "style"],
|
||||
"sub": ["class", "style"],
|
||||
"del": ["class", "style"],
|
||||
"ins": ["class", "style"],
|
||||
"strike": ["class", "style"],
|
||||
"kbd": ["class", "style"],
|
||||
"samp": ["class", "style"],
|
||||
"var": ["class", "style"]
|
||||
},
|
||||
"allowedCssProperties": [
|
||||
"color", "background-color", "font-size", "font-weight",
|
||||
"font-style", "text-align", "text-decoration", "margin",
|
||||
"padding", "text-indent", "line-height"
|
||||
"padding", "text-indent", "line-height",
|
||||
"border", "border-color", "border-width", "border-style",
|
||||
"font-family", "font-variant", "font-variant-ligatures",
|
||||
"font-variant-caps", "font-variant-numeric", "font-variant-east-asian",
|
||||
"font-variant-alternates", "font-variant-position", "font-variant-emoji",
|
||||
"font-stretch", "letter-spacing", "word-spacing",
|
||||
"text-transform", "text-shadow", "white-space",
|
||||
"vertical-align", "display", "float", "clear",
|
||||
"width", "height", "min-width", "min-height", "max-width", "max-height"
|
||||
],
|
||||
"removedAttributes": {
|
||||
"a": ["href", "target"]
|
||||
|
||||
Reference in New Issue
Block a user