Bug #89923
Updated by Susanne Haberpointner almost 5 years ago
Hello,
I have a problem in an extbase extension with using CKEditor for FlexForm fields, where you can dynamically add elements (defined here: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/DataFormats/T3datastructure/Elements/Index.html#elements-containing-values-value-elements)
When adding an instance and entering more than 1 line of text/hitting enter after the first line, an additional line feed <p> </p> is added after
each line and every <br /> Tag is converted into a <p></p> tag.
I already tried various different configs for the CKEditor, including setting autoParagraph to false, but to no avail.
TYPO3-Version: 8.7.29
PHP-Version: 7.2.16
Example:
- before saving
<pre><code class="html">
<p>Example 1</p>
<p>Example 2</p>
</code></pre>
- after first saving
<pre><code class="html">
<p>Example 1</p>
<p> </p>
<p>Example 2</p>
</code></pre>
- after second saving
<pre><code class="html">
<p>Example 1</p>
<p> </p>
<p> </p>
<p> </p>
<p>Example 2</p>
</code></pre>
Flexform-Configuration:
<pre><code class="xml">
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>
Settings
</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<funktion>
<TCEforms>
<section>1</section>
<type>array</type>
<el>
<point>
<title>Point</title>
<type>array</type>
<el>
<bodytext>
<TCEforms>
<label>Text</label>
<config>
<type>text</type>
<row>5</row>
<cols>48</cols>
<enableRichtext>1</enableRichtext>
</config>
</TCEforms>
</bodytext>
</el>
</point>
</el>
</TCEforms>
</funktion>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
</code></pre>