在TYPO3 4.5以及6.1中,每当我添加无序列表元素时,RTEhtmlarera(或其许多处理例程中的一些)都会添加额外的
<p> </p>
在保存内容元素的ul标记之前。
当首先插入ul时,这只发生一次。删除p标记并再次保存内容元素时,不会再次发生。
如何消除这种错误行为?
答案 0 :(得分:2)
您可以尝试将encapsLines
设置为零..
设置typoscript:
tt_content.stdWrap.dataWrap >
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines >
答案 1 :(得分:0)
不是一个真正的解决方案,但可能是正确方向的暗示。 如果您记下列表,请不要在第一个列表条目之前按Enter键,而是按+键输入。 例如:
Here comes the list: <<-- AT THIS POINT PRESS SHIFT+ENTER
- a <<-- Here it does not matter if you press enter or shift+enter
- b
- c
- ...
这对我来说是一种解决方法。我在sysext做了很多研究:rtehtmlarea但没有任何效果。因此,这就像是某种神秘的错误/功能,可以与您在pageTS或Setup中定义的“BR到P”(反之亦然)配置相关联。顺便说一句:我从来没有完全理解这种转换的东西:)
答案 2 :(得分:0)
对于我来说,这有效:
lib.parseFunc_RTE {
externalBlocks = table, blockquote, ol, ul, div, dl, address, hr
externalBlocks {
ol.stripNL=1
ol.stdWrap.parseFunc = < lib.parseFunc
ul.stripNL=1
ul.stdWrap.parseFunc = < lib.parseFunc
# i have also seen this setting, but didn´t test it:
# blockquote.stripNLprev = 1
# blockquote.stripNLnext = 1
}
}
我为此示例删除了许多行,请注意您使用{} ..
覆盖以前的设置