TYPO3 10.4.20
我设置了一个有序列表的样式,并且我想使用一个start-number。
在我的YAML中,我添加了:
editor:
config:
extraAllowedContent:
- ol[*]
# Allow s and u tag
processing:
allowAttributes: [ data-count, start ]
HTMLparser_db:
tags:
ol:
allowedAttribs: "start"在编辑器中一切都很好:
<ol start="5">
<li><strong>Text</strong><br />
More Text</li>
<li><strong>Text</strong><br />
More Text</li>
</ol>将保存属性start="5"。
但在前端,start="5"已不复存在。
我需要什么?
发布于 2021-09-17 06:45:30
尝试一下,在你的预设配置中添加一些额外的配置。请看下面的内容:
# Load default processing options
imports:
- { resource: "EXT:web_conf/Configuration/YAML/Processing.yaml" }
# Add configuration for the editor
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
config:
allowedContent: true
extraAllowedContent: "*(*);*{*}"
fillEmptyBlocks: false
tabSpaces: 0
forcePasteAsPlainText: true
entities_additional: ''
removePlugins: null您的处理配置似乎是正确的。所以,顺其自然吧。
# Allow s and u tag
processing:
allowAttributes: [ data-count, start ]
HTMLparser_db:
tags:
ol:
allowedAttribs: "start"这对我很有效。
https://stackoverflow.com/questions/69218523
复制相似问题