Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
类型3:CKEditor在<;span>-标签_Ckeditor_Typo3_Typo3 8.x - Fatal编程技术网

类型3:CKEditor在<;span>-标签

类型3:CKEditor在<;span>-标签,ckeditor,typo3,typo3-8.x,Ckeditor,Typo3,Typo3 8.x,我想在span标记中使用数据属性。CKEditor将删除此属性 如果我将其添加到p标签中,它将不会被删除,这是正常的 processing: allowAttributes: [data-count] 添加到YAML文件中 我试过这个和其他组合,没有效果 config extraAllowedContent: '*(*)[data-*]' 要将数据属性保留在span标记中,我必须做什么?我已经对带有attribbuts的iframe标记执行了此操作,没有使用AllowAttribute

我想在span标记中使用数据属性。CKEditor将删除此属性

如果我将其添加到p标签中,它将不会被删除,这是正常的

processing:
 allowAttributes: [data-count]
添加到YAML文件中

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

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

要将数据属性保留在span标记中,我必须做什么?

我已经对带有attribbuts的iframe标记执行了此操作,没有使用AllowAttribute:

processing:
  allowTags:
    - iframe

editor:
  config:    
    extraAllowedContent:
      - iframe[*]
对你来说,这应该可以做到:

editor:
  config:    
    extraAllowedContent:
      - span[*]

你找到解决办法了吗?我也有同样的问题。对不起,还是没有办法。