Ckeditor TYPO3编辑器为表添加引导类
我试图通过yaml文件将类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'],
“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)