Bug #79216
closedrte_ckeditor generates empty lines between paragraphs
0%
Description
rte_ckeditor generates empty lines between paragraphs and headlines.
These empty lines are rendered as
<p> </p>
in frontend with fluid_styled_content (not tested with css_styled_content, yet).
Updated by Philipp Faber almost 8 years ago
Hey,
try to change the rendering from <format.html> to <format.raw> in fluid styled content. That should do the trick.
Updated by Jan Kiesewetter almost 8 years ago
I don't think so, because i don't use a variable:
lib.content = CONTENT lib.content { table = tt_content select { orderBy = sorting where.field = colPos where.intval = 1 where.wrap = colPos=| languageField = sys_language_uid } }
and
<f:cObject typoscriptObjectPath="lib.content"/>
Updated by Jan Kiesewetter almost 8 years ago
This also happens with a simple
page.10 < styles.content.get
Or do you mean inside fluid_styled_content?
Updated by Jan Kiesewetter almost 8 years ago
OK, I should read you whole answer before I reply.
Changing every fluid_styled_content template just because of rte_ckeditor is, well, ...
I go with rtehtmlarea for now.
How would you implement a core patch? A snd template root path for fluid_styled_content if rte_ckeditor is loaded?
Updated by Jan Kiesewetter almost 8 years ago
But I think, format.raw is not a good solution at all!
Updated by Riccardo De Contardi almost 8 years ago
https://forge.typo3.org/issues/71878#note-13 could be a solution?
Updated by Christian Kuhn almost 8 years ago
yes, that's only one restriction of the ckeditor configuration delivered with v8.5. basically, no content transformation was ever applied. this is partially fixed in master already, and benni is currently working on a better configuration system of the editor.
Updated by Anders Kostending over 7 years ago
- Status changed from New to Closed
Christian Kuhn wrote:
yes, that's only one restriction of the ckeditor configuration delivered with v8.5. basically, no content transformation was ever applied. this is partially fixed in master already, and benni is currently working on a better configuration system of the editor.
It appears that this one is solved with https://forge.typo3.org/issues/79351. I believe that was with the new configuration system?
Updated by Harald Krischner over 7 years ago
Why is this issue closed? #79351 is closed as related to this one. And this seems to be closed because #79351 is resolved?
Anyway, I still have this problem and have not found any leverage to get rid of the continuously growing number of empty paragraphs on every save.
I am using a custom content element with this fairly straight forward configuration:
<f:section name="Configuration"> <flux:form id="tabs" options="{group: 'my-elements'}"> <flux:form.section name="tabs" label="Tab"> <flux:form.object name="tab"> <flux:field.input name="title" label="title"/> <flux:field.text name="content" label="text" enableRichText="true"/> </flux:form.object> </flux:form.section> </flux:form> </f:section>
Updated by Rafal Brzeski over 7 years ago
Guys, this works for me very well
<f:format.html parseFuncTSPath="">
The only downside is that you have to change it in the FSC files.
And the question, is this solution safe ?
Updated by Steffen Kamper over 7 years ago
the solutions are no sulutions - the problem starts in BE when you edit a text with paragraphs. For me, after each save, empty paragraphs are added between each existing paragraph.
So the problem must be solved at this place, and not supressing this error in FE rendering!
Updated by Steffen Kamper over 7 years ago
OK - i tried with different types of text, and the problem is inside flux
Using defaultExtras in text configuration leads to the problem. Solution is not to use defaultExtras, but enableRichtext = true instead.
So i will do a change request for FLUX , and for core the issue does not exist (as long as you do not change the TCA for mode)
For me the ticket can be closed.
Updated by Christian Kuhn over 7 years ago
- Related to Bug #80778: CKeditor inserts empty paragraphs in FlexForms added
Updated by Oleg Karun over 7 years ago
Stephen Kamper thx i also added hard coded as you told. Approximately in 60 line in
typo3conf/ext/flux/Classes/Form/Field/Text.php
if (true === $this->getEnableRichText() && true === empty($defaultExtras)) {
$typoScript = $this->getConfigurationService()->getAllTypoScript();
$configuration['enableRichtext'] = true;
} else {
$configuration['defaultExtras'] = $defaultExtras;
}
Updated by Jasmina Ließmann over 7 years ago
- Related to Bug #81893: ck_editor: Linefeeds added after each save added