我注意到 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 有关,但找不到线索。
我很感激你的回答。