TYPO3:CKEditor的:不要给出了一些类

问题描述 投票:1回答:1

我有自己的类中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

当我从新的另外两个失踪的风格类也出现在第三的风格,但不是第四。

任何想法,该怎么办?

ckeditor typo3 yaml typo3-8.x
1个回答
2
投票

这是一个在CKEditor的一个bug。该班必须按字母顺序排列。见https://dev.ckeditor.com/ticket/13206https://github.com/ckeditor/ckeditor-dev/issues/2578

© www.soinside.com 2019 - 2024. All rights reserved.