Incluir ajustes para bleach en el ejemplo de

parent 71dd3cdd
Pipeline #525 failed with stage
in 0 seconds
......@@ -308,4 +308,46 @@ SUMMERNOTE_CONFIG = {
# },
}
# BLEACH
ADDITIONAL_ALLOWED_TAGS = [
"br",
"del",
"div",
"dl",
"dt",
"dd",
"em",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"hr",
"img",
"ins",
"p",
"pre",
"span",
"strike",
"sub",
"sup",
"table",
"tbody",
"td",
"th",
"thead",
"tr",
"u",
]
ALLOWED_ATTRIBUTES = {
"*": ["class", "id", "style"],
"a": ["alt", "href", "target", "title"],
"abbr": ["title"],
"acronym": ["title"],
"img": ["alt", "src"],
}
ALLOWED_STYLES = ["background-color", "color", "text-align"]
ALLOWED_PROTOCOLS = ["data", "http", "https", "mailto"]
X_FRAME_OPTIONS = "SAMEORIGIN" # Required by SummernoteWidget on Django 3.x
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment