TYPO3 ckeditor 为表添加引导程序类

Pav*_*ter 0 typo3 ckeditor

我尝试将类"table""table-striped"通过 yaml-File 添加到 TYPO3 8 中的 ckeditor。使用其他块标记或内联标记没有问题,但是对于表仍然存在类"contenttable"- 只有这个类,我不能添加其他类。我试过这个:

{ name: "Table", element: ['table','p'], attributes: { 'class': 'table' }}

{ name: "Table-Striped", element: ['table','p'], attributes: { 'class': 'table-striped' }}
Run Code Online (Sandbox Code Playgroud)

对于 p 可以(没有意义),但不适用于桌子。

小智 5

我遇到了同样的问题并找到了解决方法。 https://forge.typo3.org/issues/81676

YAML

editor:
config:
    stylesSet:
        - { name: "Table borderless", element: "table", attributes: { 'class': 'contenttable contenttable--borderless' } }
Run Code Online (Sandbox Code Playgroud)

打字稿

lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list := addToList(contenttable, contenttable--borderless)
Run Code Online (Sandbox Code Playgroud)