Fix table styles in rte context

This commit is contained in:
Björn Fromme
2021-12-22 16:22:57 +01:00
parent 8d7ca5ba4d
commit 731eb79c36
2 changed files with 28 additions and 3 deletions
@@ -58,7 +58,7 @@ lib.parseFunc {
lib.parseFunc_RTE < lib.parseFunc
lib.parseFunc_RTE {
externalBlocks := addToList(article, aside, blockquote, div, dd, dl, footer)
externalBlocks := addToList(header, nav, ol, section, table, ul, pre)
externalBlocks := addToList(header, nav, ol, section, table, ul, pre, svg, use)
externalBlocks {
ol {
stripNL = 1
@@ -75,12 +75,12 @@ lib.parseFunc_RTE {
table {
stripNL = 1
stdWrap {
wrap = <div class="table-responsive">|</div>
wrap = <div class="w-full overflow-x-scroll mb-4">|</div>
}
callRecursive = 1
callRecursive.tagStdWrap.HTMLparser = 1
callRecursive.tagStdWrap.HTMLparser.tags.table {
fixAttrib.class.default = table table-condensed table-striped
fixAttrib.class.default = w-full
}
HTMLtableCells = 1
HTMLtableCells {