TYPO3:CKEditor:不显示某些类

时间:2019-02-05 14:35:28

标签: ckeditor typo3 yaml typo3-8.x

我在ckeditor中拥有自己的类的yaml配置:

  - { name: "Subline", element: "p", attributes: { class: "subline" } }
  - { name: "Intro", element: "p", attributes: { class: "lead" } }
  - { name: "Farbwelt-Text", element: "p", attributes: { class: "text-farbwelt" } }
  - { name: "small", element: "p", attributes: { class: "small" } }
  - { name: "Style: h1", element: "p", attributes: { class: "h1" } }
  - { name: "Style: h2", element: "p", attributes: { class: "h2" } }
  - { name: "Style: h3", element: "p", attributes: { class: "h3" } }
  - { name: "Style: h4", element: "p", attributes: { class: "h4" } }
  - { name: "Style: h5", element: "p", attributes: { class: "h5" } }
  - { name: "Farbformatierung", element: "p", attributes: { class: "wie-color" } }
  - { name: "Farbe: Afrika", element: "p", attributes: { class: "afrika" } }
  - { name: "Farbe: Europa", element: "p", attributes: { class: "europa" } }
  - { name: "Farbe: Asien", element: "p", attributes: { class: "asien" } }
  - { name: "Farbe: Orient", element: "p", attributes: { class: "orient" } }
  - { name: "Farbe: Lateinamerika", element: "p", attributes: { class: "lateinamerika" } }
  # Inline styles
  - { name: "Telefon-Icon", element: "span", attributes: { class: "telefon" } }
  - { name: "Button (orange)", element: "a", attributes: { class: "btn btn-wie-default" } }
  - { name: "Button (orange) small", element: "a", attributes: { class: "btn btn-wie-default btn-sm" } }
  - { name: "Button (orange) small + Pfeil", element: "a", attributes: { class: "btn btn-wie-default btn-sm btn-pfeil" } }
  - { name: "Button (grau) small + Outline + Pfeil", element: "a", attributes: { class: "btn btn-sm btn-outline-secondary btn-pfeil" } }
  - { name: "E-Mail-Icon", element: "a", attributes: { class: "email" } }
  - { name: "Link-Icon", element: "a", attributes: { class: "link" } }

一切正常,除了以下样式:

  - { name: "Button (orange)", element: "a", attributes: { class: "btn btn-wie-default" } }
  - { name: "Button (orange) small", element: "a", attributes: { class: "btn btn-wie-default btn-sm" } }
  - { name: "Button (orange) small + Pfeil", element: "a", attributes: { class: "btn btn-wie-default btn-sm btn-pfeil" } }
  - { name: "Button (grau) small + Outline + Pfeil", element: "a", attributes: { class: "btn btn-sm btn-outline-secondary btn-pfeil" } }

Missing Styles

在编辑器中,仅显示第一个元素。如果我这样更改第二个元素:

- { name: "Button (orange) small", element: "a", attributes: { class: "btn btn-sm btn-wie-default" } }

然后显示第一个和第二个条目。

enter image description here

当我也改组其他两种缺少样式的类时,会出现第三个样式,而不是第四个样式。

任何想法,怎么办?

1 个答案:

答案 0 :(得分:2)

这是ckeditor中的错误。这些类必须按字母顺序排列。参见https://dev.ckeditor.com/ticket/13206https://github.com/ckeditor/ckeditor-dev/issues/2578