This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BookConverter/docs/style_config
2022-07-27 20:45:00 +03:00

81 lines
1.8 KiB
Plaintext

config.allowedContent = {
sup: {
attributes: ['*'],
classes: ['*']
},
table: {
attributes: ['*'],
styles: ['*']
},
tr: {
attributes: ['*'],
styles: ['*']
},
th: {
attributes: ['*'],
classes: ['p-indent'],
styles: ['*']
},
td: {
attributes: ['*'],
classes: ['p-indent'],
styles: ['*']
},
tbody: {
attributes: ['*'],
styles: ['*']
},
thead: {
attributes: ['*'],
styles: ['*']
},
caption : {},
img : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
code : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
pre : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
p : {
styles: ['text-align', 'text-indent', 'border-bottom', 'border-top'],
classes: ['*']
},
strong : {},
i : {},
s : {},
u : {},
ul : {},
ol : {},
li : {
styles: ['text-align']
},
blockquote : {},
span : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
a : {
attributes: ['href', 'data-anchor-id', 'data-chapter-id', 'placeholder'],
classes: ['link-to-anchor'],
},
iframe : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
div : {
attributes: ['*'],
classes: ['youtube-embed-wrapper'],
styles: ['*']
}
};