N1c*_*1ck 1 yaml class typo3 ckeditor typo3-8.x
我注意到 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 有关,但找不到线索。
我很感激你的回答。
不久前我也遇到了这个问题。经过一番搜索,我发现这是 ckeditor 中的一个错误。类必须按字母顺序列出,否则将不起作用。问题是在 ckeditor 的一部分中,类被排序,然后根据未排序的原始配置进行检查。该错误已为人所知一段时间(至少 4 年,请参阅https://dev.ckeditor.com/ticket/13206),但似乎尚未修复。现在唯一的“修复”是按字母顺序列出类。
| 归档时间: |
|
| 查看次数: |
841 次 |
| 最近记录: |