类型3:CKEditor在<;span>-标签
我想在span标记中使用数据属性。CKEditor将删除此属性 如果我将其添加到p标签中,它将不会被删除,这是正常的类型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
processing:
allowAttributes: [data-count]
添加到YAML文件中
我试过这个和其他组合,没有效果
config
extraAllowedContent: '*(*)[data-*]'
要将数据属性保留在span标记中,我必须做什么?我已经对带有attribbuts的iframe标记执行了此操作,没有使用AllowAttribute:
processing:
allowTags:
- iframe
editor:
config:
extraAllowedContent:
- iframe[*]
对你来说,这应该可以做到:
editor:
config:
extraAllowedContent:
- span[*]
你找到解决办法了吗?我也有同样的问题。对不起,还是没有办法。