【问题标题】:TYPO3 Flexform + Ckeditor: Empty paragraphs are added on savingTYPO3 Flexform + Ckeditor:保存时添加空段落
【发布时间】:2019-06-07 07:55:04
【问题描述】:

我已将 ckeditor 附加到插件 flexforms 字段。每次保存插件(ce)时,都会为换行添加空段落,并将<br>转换为<p> </p>。没有使用助焊剂或直流电。 TYPO3 是 8.7.13(当前也是 9)。只是一个使用pi_flexform 的插件,带有这样的 rte 字段:

<settings.bookingConfirmationEmailBody>
    <config>
        <type>text</type>
        <rows>5</rows>
        <cols>30</cols>
        <eval>trim,required</eval>
        <enableRichtext>1</enableRichtext>
        <richtextConfiguration>exhibitors_email</richtextConfiguration>
    </config>
</settings.bookingConfirmationEmailBody>

我发现,在“从 rte 到 db”的方向上,一切都正确存储。但是“从 db 到 rte”,换行符和 &lt;br&gt; 被转换为 &lt;p&gt;&amp;nbsp;&lt;/p&gt;,每次我保存时都会相乘。已经花了几个小时了:(

【问题讨论】:

标签: plugins ckeditor typo3 typo3-8.x flexform


【解决方案1】:

您是否使用EXT:flux 如果是,有一个听起来很相似的错误:https://github.com/FluidTYPO3/flux/issues/1388

也许更新或切换到通量开发分支会为您解决这个问题。

【讨论】:

    【解决方案2】:

    似乎很快就会修复 8 LTS 和 9 LTS: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60902

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-30
      • 1970-01-01
      • 1970-01-01
      • 2020-08-06
      • 1970-01-01
      • 2013-02-19
      相关资源
      最近更新 更多