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