小编N1c*_*1ck的帖子

TYPO3 8 ckeditor 样式设置多个类以“bg”开头的类名不起作用

我注意到 yaml 配置有一个奇怪的行为,因为 TYPO3 从 8.19 更新到 8.22 在具有多个类的部分 stylesSet 中。如果类名以“bg”开头并且未定义为第一类,则它不再起作用。

stylesSet:
  - { name: "bgcolor-pink", element: ['p', 'div'] , attributes: { class: "button bgcolor pink"} }
Run Code Online (Sandbox Code Playgroud)

但是,如果我将类“bgcolor”放在首位,则样式集“bgcolor-pink”将再次显示在 ckeditor 中并且可以正常工作。

 stylesSet:
  - { name: "bgcolor-pink", element: ['p', 'div'] , attributes: { class: "bgcolor button pink"} }
Run Code Online (Sandbox Code Playgroud)

我想这可能与 stylesheetParser_skipSelectors 有关,但找不到线索。

我很感激你的回答。

yaml class typo3 ckeditor typo3-8.x

1
推荐指数
1
解决办法
841
查看次数

标签 统计

ckeditor ×1

class ×1

typo3 ×1

typo3-8.x ×1

yaml ×1