Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ckeditor TYPO3编辑器为表添加引导类_Ckeditor_Typo3 - Fatal编程技术网

Ckeditor TYPO3编辑器为表添加引导类

Ckeditor TYPO3编辑器为表添加引导类,ckeditor,typo3,Ckeditor,Typo3,我试图通过yaml文件将类“table”和“table striped”添加到TYPO3 8中的ckeditor中。 对于其他块标记或内联标记没有问题,但是对于表,仍然存在类“contenttable”——只有这个类,我不能添加其他类。 我试过这个: { name: "Table", element: ['table','p'], attributes: { 'class': 'table' }} { name: "Table-Striped", element: ['table','p'],

我试图通过yaml文件将类
“table”
“table striped”
添加到TYPO3 8中的ckeditor中。 对于其他块标记或内联标记没有问题,但是对于表,仍然存在类
“contenttable”
——只有这个类,我不能添加其他类。 我试过这个:

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

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

对于p来说是可以的(没有意义),但对于表来说不是。

我也遇到了同样的问题,并找到了解决方法。

YAML

editor:
config:
    stylesSet:
        - { name: "Table borderless", element: "table", attributes: { 'class': 'contenttable contenttable--borderless' } }
打字稿

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

我也遇到了同样的问题,找到了解决办法。

YAML

editor:
config:
    stylesSet:
        - { name: "Table borderless", element: "table", attributes: { 'class': 'contenttable contenttable--borderless' } }
打字稿

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