forked from LiveCarta/BookConverter
Update style_config
This commit is contained in:
@@ -1,127 +1,131 @@
|
|||||||
config.allowedContent = {
|
config.allowedContent = {
|
||||||
sub: {
|
sub: {
|
||||||
classes: ['*']
|
classes: [‘*’]
|
||||||
},
|
},
|
||||||
sup: {
|
sup: {
|
||||||
classes: ['*'],
|
classes: [‘*’],
|
||||||
attributes: ['data-id']
|
attributes: [‘data-id’]
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
tr: {
|
tr: {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
th: {
|
th: {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['p-indent'],
|
classes: [‘p-indent’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
td: {
|
td: {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['p-indent'],
|
classes: [‘p-indent’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
tbody: {
|
tbody: {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
thead: {
|
thead: {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
caption : {},
|
caption : {},
|
||||||
img : {
|
img : {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['*'],
|
classes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
code : {
|
code : {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['*'],
|
classes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
pre : {
|
pre : {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['*'],
|
classes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
p : {
|
p : {
|
||||||
styles: ['text-align',
|
styles: [‘text-align’,
|
||||||
'text-indent',
|
‘text-indent’,
|
||||||
'border',
|
‘border’,
|
||||||
'border-bottom',
|
‘border-bottom’,
|
||||||
'border-top',
|
‘border-top’,
|
||||||
'border-left',
|
‘border-left’,
|
||||||
'border-right',
|
‘border-right’,
|
||||||
'background-color',
|
‘background’,
|
||||||
'margin',
|
‘background-color’,
|
||||||
'margin-top',
|
‘margin’,
|
||||||
'margin-left',
|
‘margin-top’,
|
||||||
'margin-right',
|
‘margin-left’,
|
||||||
'margin-bottom'],
|
‘margin-right’,
|
||||||
classes: ['*']
|
‘margin-bottom’],
|
||||||
|
classes: [‘*’]
|
||||||
},
|
},
|
||||||
strong : {},
|
strong : {},
|
||||||
i : {},
|
i : {},
|
||||||
s : {},
|
s : {},
|
||||||
u : {},
|
u : {},
|
||||||
ul : {
|
ul : {
|
||||||
styles: ['list-style-type']
|
styles: [‘list-style-type’]
|
||||||
},
|
},
|
||||||
ol : {
|
ol : {
|
||||||
styles: ['list-style-type']
|
styles: [‘list-style-type’],
|
||||||
|
attributes: [‘start’, ‘reversed’],
|
||||||
},
|
},
|
||||||
li : {
|
li : {
|
||||||
styles: ['text-align', 'list-style-type']
|
styles: [‘text-align’, ‘list-style-type’],
|
||||||
|
attributes: [‘value’],
|
||||||
},
|
},
|
||||||
blockquote : {},
|
blockquote : {},
|
||||||
span : {
|
span : {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['*'],
|
classes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
a : {
|
a : {
|
||||||
attributes: ['href', 'data-anchor-id', 'data-chapter-id', 'placeholder'],
|
attributes: [‘href’, ‘data-anchor-id’, ‘data-chapter-id’, ‘placeholder’],
|
||||||
classes: ['link-to-anchor'],
|
classes: [‘link-to-anchor’],
|
||||||
},
|
},
|
||||||
iframe : {
|
iframe : {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['*'],
|
classes: [‘*’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
div : {
|
div : {
|
||||||
attributes: ['*'],
|
attributes: [‘*’],
|
||||||
classes: ['youtube-embed-wrapper'],
|
classes: [‘youtube-embed-wrapper’],
|
||||||
styles: ['*']
|
styles: [‘*’]
|
||||||
},
|
},
|
||||||
'h1 h2 h3 h4 h5 h6 h7 h8 h9': {
|
‘h1 h2 h3 h4 h5 h6 h7 h8 h9’: {
|
||||||
styles: ['text-align',
|
styles: [‘text-align’,
|
||||||
'text-indent',
|
‘text-indent’,
|
||||||
'border',
|
‘border’,
|
||||||
'border-bottom',
|
‘border-bottom’,
|
||||||
'border-top',
|
‘border-top’,
|
||||||
'border-left',
|
‘border-left’,
|
||||||
'border-right',
|
‘border-right’,
|
||||||
'background-color',
|
‘background-color’,
|
||||||
'margin',
|
‘background’,
|
||||||
'margin-top',
|
‘margin’,
|
||||||
'margin-left',
|
‘margin-top’,
|
||||||
'margin-right',
|
‘margin-left’,
|
||||||
'margin-bottom'],
|
‘margin-right’,
|
||||||
|
‘margin-bottom’],
|
||||||
},
|
},
|
||||||
hr: {
|
hr: {
|
||||||
styles: ['border',
|
styles: [‘border’,
|
||||||
'border-bottom',
|
‘border-bottom’,
|
||||||
'border-top',
|
‘border-top’,
|
||||||
'border-left',
|
‘border-left’,
|
||||||
'border-right',
|
‘border-right’,
|
||||||
'margin',
|
‘margin’,
|
||||||
'margin-top',
|
‘margin-top’,
|
||||||
'margin-left',
|
‘margin-left’,
|
||||||
'margin-right',
|
‘margin-right’,
|
||||||
'margin-bottom'],
|
‘margin-bottom’],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user