2017-07-11 25 views
0

我嘗試通過yaml-File將類"table""table-striped"添加到TYPO3 8中的ckeditor中。 與其他塊標籤或內聯標籤不存在問題,但是對於表,仍然是類"contenttable" - 只有這個類,我不能添加其他類。 我嘗試這樣做:TYPO3 ckeditor爲表添加引導類

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

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

的p它是確定(沒有意義),而不是表。

回答

0

我有同樣的問題,並找到一種解決方法。 https://forge.typo3.org/issues/81676

YAML

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

Typo腳本

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