Clean of "< >"

This commit is contained in:
Kibzik
2023-03-16 12:09:47 +03:00
parent e473e45685
commit da6e05064d

View File

@@ -1,8 +1,11 @@
config.allowedContent = { config.allowedContent = {
sup: { sub: {
attributes: ['*'],
classes: ['*'] classes: ['*']
}, },
sup: {
classes: ['*'],
attributes: ['data-id']
},
table: { table: {
attributes: ['*'], attributes: ['*'],
styles: ['*'] styles: ['*']
@@ -46,17 +49,33 @@ config.allowedContent = {
styles: ['*'] styles: ['*']
}, },
p : { p : {
styles: ['text-align', 'text-indent', 'border-bottom', 'border-top'], styles: ['text-align',
'text-indent',
'border',
'border-bottom',
'border-top',
'border-left',
'border-right',
'background-color',
'margin',
'margin-top',
'margin-left',
'margin-right',
'margin-bottom'],
classes: ['*'] classes: ['*']
}, },
strong : {}, strong : {},
i : {}, i : {},
s : {}, s : {},
u : {}, u : {},
ul : {}, ul : {
ol : {}, styles: ['list-style-type']
},
ol : {
styles: ['list-style-type']
},
li : { li : {
styles: ['text-align'] styles: ['text-align', 'list-style-type']
}, },
blockquote : {}, blockquote : {},
span : { span : {
@@ -77,5 +96,32 @@ config.allowedContent = {
attributes: ['*'], attributes: ['*'],
classes: ['youtube-embed-wrapper'], classes: ['youtube-embed-wrapper'],
styles: ['*'] styles: ['*']
},
'h1 h2 h3 h4 h5 h6 h7 h8 h9': {
styles: ['text-align',
'text-indent',
'border',
'border-bottom',
'border-top',
'border-left',
'border-right',
'background-color',
'margin',
'margin-top',
'margin-left',
'margin-right',
'margin-bottom'],
},
hr: {
styles: ['border',
'border-bottom',
'border-top',
'border-left',
'border-right',
'margin',
'margin-top',
'margin-left',
'margin-right',
'margin-bottom'],
} }
}; };