Typo3/CKEditor: 允许定义列表(dl, dt, dd)
Typo3/CKEditor: Allow definition list (dl, dt, dd)
这个问题快把我逼疯了。我将 typo3 (8.7.13) 与 CKEditor 一起用作 RTE。现在我想允许在源代码查看模式下使用 <dl>
、<dt>
和 <dd>
。但是每次我离开源代码视图时,这些标签都会被修改为 <p>
<dl>
、<dt>
和 <dd>
位于
下的 yaml 文件中
processing:
allowTags:
- dl
- dt
- dd
在我设置的模板常量中:
styles.content.allowTags := addToList(dd)
styles.content.allowTags := addToList(dt)
styles.content.allowTags := addToList(dl)
还需要什么?
脚蹼wimmer
这个有用吗?
RTE.default {
allowTags < RTE.default.proc.allowTags
proc {
allowTagsOutside := addToList(dd,dt,dl)
}
}
自己为 CKEditor 配置 YAML 并添加
processing:
# Tags that are allowed in the content in general
allowTags:
- dd
- dl
- dt
## Tags that are allowed outside of paragraphs
allowTagsOutside: [dd, dl, dt]
是啊,我终于找到了基于这个的解决方案。
这需要在 yaml 配置中插入:
editor:
config:
extraAllowedContent:
- dd
- dl
- dt
鳍状游泳运动员
编辑:
配置:
allowedContent: true
[..]
处理
允许标签:
- DL
- dt
-dd
我找到了 plugin for ckeditor (which not only allows <dl>
tags and so forth but also provides custom buttons for the editor) and created a simple wrapper extension to easily integrate that into TYPO3. In case anyone's interested it's on github as rte_ckeditor_dl。
这个问题快把我逼疯了。我将 typo3 (8.7.13) 与 CKEditor 一起用作 RTE。现在我想允许在源代码查看模式下使用 <dl>
、<dt>
和 <dd>
。但是每次我离开源代码视图时,这些标签都会被修改为 <p>
<dl>
、<dt>
和 <dd>
位于
processing:
allowTags:
- dl
- dt
- dd
在我设置的模板常量中:
styles.content.allowTags := addToList(dd)
styles.content.allowTags := addToList(dt)
styles.content.allowTags := addToList(dl)
还需要什么?
脚蹼wimmer
这个有用吗?
RTE.default {
allowTags < RTE.default.proc.allowTags
proc {
allowTagsOutside := addToList(dd,dt,dl)
}
}
自己为 CKEditor 配置 YAML 并添加
processing:
# Tags that are allowed in the content in general
allowTags:
- dd
- dl
- dt
## Tags that are allowed outside of paragraphs
allowTagsOutside: [dd, dl, dt]
是啊,我终于找到了基于这个的解决方案
这需要在 yaml 配置中插入:
editor:
config:
extraAllowedContent:
- dd
- dl
- dt
鳍状游泳运动员
编辑:
配置:
allowedContent: true
[..]
处理
允许标签:
- DL
- dt
-dd
我找到了 plugin for ckeditor (which not only allows <dl>
tags and so forth but also provides custom buttons for the editor) and created a simple wrapper extension to easily integrate that into TYPO3. In case anyone's interested it's on github as rte_ckeditor_dl。