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"
消失了。
我需要什么?
试试这个,在您的预设配置中添加一些额外的配置。请看下面:
# 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"
这个适合我。