TYPO3:CKEditor 剥离 <span>-Tags 中的数据属性

TYPO3: CKEditor strips data-attributes in <span>-Tags

我想在 span-Tag 中使用数据属性。 CKEditor 删除了这个属性。

如果我将它添加到 p-Tag 中,它不会被删除,这没关系。

processing:
 allowAttributes: [data-count]

已添加到 YAML 文件中。

我试过这个和其他组合,没有任何效果。

config
  extraAllowedContent: '*(*)[data-*]'

要将数据属性保留在 span-Tag 中,我需要做什么?

我已经为带有属性的 iframe 标记完成了此操作,没有为此使用 allowAttributes:

processing:
  allowTags:
    - iframe

editor:
  config:    
    extraAllowedContent:
      - iframe[*]

对你来说,这应该可以解决问题:

editor:
  config:    
    extraAllowedContent:
      - span[*]