如何为 TYPO3 7 表启用 html 渲染?
How can I enable html rendering for TYPO3 7 tables?
我正在使用 TYPO3 7.6.2,我不能再在标准 table 元素中使用 html,因为 TYPO3 在 [=20= 中转义了 html 标签] 元素。是否有我必须启用的特定 RTE 配置或其他配置?我当前的 RTE 配置如下所示:
RTE.default {
contentCSS = EXT:my_distribution/Resources/Public/Css/rte.css
proc {
allowedClasses := addToList(blue, button, caption, center, more, responsive, responsive2, subcaption, white)
}
showButtons := addToList(pastetoggle)
buttons {
blockstyle.tags.p.allowedClasses := addToList(caption, subcaption, white)
blockstyle.tags.table.allowedClasses := addToList(responsive, responsive2)
textstyle.tags.span.allowedClasses := addToList(blue, center, more, subcaption, white)
link.properties.class.allowedClasses := addToList(button)
pastetoggle.setActiveOnRteOpen = 1
}
}
我不希望编辑器必须在文本内容元素或 html 内容元素中使用纯 html tables。
Html 不再支持 CE table。
解决方法 1:将 html table 与 rte
结合使用
解决方法 2:如果您信任您的编辑
,则撤销以下补丁 https://review.typo3.org/#/c/45281/ 的安全更改
我推荐解决方法 1,但我认为有些编辑不会喜欢这种解决方案。所以也许最好开发一个简单的扩展来处理灵活的 tables.
TYPO3 7.6 + 不再支持它,但您也可以通过
覆盖它
tt_content.table.20.innerStdWrap.htmlSpecialChars >
tt_content.table.20.innerStdWrap.parseFunc = < lib.parseFunc
在您的设置文件中
我正在使用 TYPO3 7.6.2,我不能再在标准 table 元素中使用 html,因为 TYPO3 在 [=20= 中转义了 html 标签] 元素。是否有我必须启用的特定 RTE 配置或其他配置?我当前的 RTE 配置如下所示:
RTE.default {
contentCSS = EXT:my_distribution/Resources/Public/Css/rte.css
proc {
allowedClasses := addToList(blue, button, caption, center, more, responsive, responsive2, subcaption, white)
}
showButtons := addToList(pastetoggle)
buttons {
blockstyle.tags.p.allowedClasses := addToList(caption, subcaption, white)
blockstyle.tags.table.allowedClasses := addToList(responsive, responsive2)
textstyle.tags.span.allowedClasses := addToList(blue, center, more, subcaption, white)
link.properties.class.allowedClasses := addToList(button)
pastetoggle.setActiveOnRteOpen = 1
}
}
我不希望编辑器必须在文本内容元素或 html 内容元素中使用纯 html tables。
Html 不再支持 CE table。
解决方法 1:将 html table 与 rte
结合使用解决方法 2:如果您信任您的编辑
,则撤销以下补丁 https://review.typo3.org/#/c/45281/ 的安全更改我推荐解决方法 1,但我认为有些编辑不会喜欢这种解决方案。所以也许最好开发一个简单的扩展来处理灵活的 tables.
TYPO3 7.6 + 不再支持它,但您也可以通过
覆盖它tt_content.table.20.innerStdWrap.htmlSpecialChars >
tt_content.table.20.innerStdWrap.parseFunc = < lib.parseFunc
在您的设置文件中