forked from LiveCarta/BookConverter
Clean of "< >"
This commit is contained in:
@@ -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'],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user