Typo3关闭并开始一个新的段落<p>在每一个<br>在新闻扩展的bodytext中。

问题描述 投票:0回答:1

我使用Typo3 9.5.14和CkEditor来添加和编辑新闻文章,我在前端看到它在bodytext区域的每一个地方都在关闭和开始一个新的段落,这里有一个例子。

<p>
Text somthing <br />
Text somthing 2 <br />
Text somthing 3 <br />
Text somthing 4 <br />
</p>

保存后,我在前台看到的是这样的转换。

<p>Text somthing </p>
<p>Text somthing 2 </p>
<p>Text somthing 3 </p>
<p>Text somthing 4 </p>

但在源码中,即使保存后,它仍然是原始代码。

导致每行文字之间增加新的空格的问题。

ckeditor typo3 typo3-9.x tx-news
1个回答
1
投票

是否可以改成直接编辑源码?

enter image description here

另一个原因可能是你需要在编辑器配置中允许使用标签。像这样。

TYPO3 9.5.4 CKEditor RTE删除样式属性。

希望对你有帮助

EDIT:

这个设置在TYPO3 9中还能用吗,也许就是这样。

https:/docs.typo3.orgmtypo3reference-coreapi7.6en-usRteTransformationsTsconfigIndex.html#dontconvbrtoparagraph。


0
投票

我带着我找到的解决方案回来,我已经卸载了过时的扩展rtehtmlarea,这就解决了这个问题。

© www.soinside.com 2019 - 2024. All rights reserved.