forked from LiveCarta/BookConverter
Clean of "< >"
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
config.allowedContent = {
|
||||
sup: {
|
||||
attributes: ['*'],
|
||||
sub: {
|
||||
classes: ['*']
|
||||
},
|
||||
sup: {
|
||||
classes: ['*'],
|
||||
attributes: ['data-id']
|
||||
},
|
||||
table: {
|
||||
attributes: ['*'],
|
||||
styles: ['*']
|
||||
@@ -46,17 +49,33 @@ config.allowedContent = {
|
||||
styles: ['*']
|
||||
},
|
||||
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: ['*']
|
||||
},
|
||||
strong : {},
|
||||
i : {},
|
||||
s : {},
|
||||
u : {},
|
||||
ul : {},
|
||||
ol : {},
|
||||
ul : {
|
||||
styles: ['list-style-type']
|
||||
},
|
||||
ol : {
|
||||
styles: ['list-style-type']
|
||||
},
|
||||
li : {
|
||||
styles: ['text-align']
|
||||
styles: ['text-align', 'list-style-type']
|
||||
},
|
||||
blockquote : {},
|
||||
span : {
|
||||
@@ -77,5 +96,32 @@ config.allowedContent = {
|
||||
attributes: ['*'],
|
||||
classes: ['youtube-embed-wrapper'],
|
||||
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'],
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user