Peter Kraume
Peter Kraume

Reputation: 3812

TYPO3 CKEditor: prevent removal of whitespaces between two HTML tags

I've updated a website from TYPO3 7.6 to 9.5.

Now it seems that the frontend output of CKEditor removes whitespaces between two HTML tags: <strong>sometext:</strong><a href="https://domain.tld/" target="_blank" class="external-link-new-window">more text</a>

In the editor, there is a whitespace between the closing </strong> and the opening <a> tag.

Is there any way to configure this?

Upvotes: 0

Views: 597

Answers (2)

Riccardo De Contardi
Riccardo De Contardi

Reputation: 2148

I think that the problem here is that on version 9.5 the Fluid Content Elements are using the viewhelper <f:spaceless> that removes the white spaces - see

/typo3/sysext/fluid_styled_content/Resources/Private/Layouts/Default.html

If this is wrong for you you can override the default layout file removing it.

Upvotes: 2

Naderio
Naderio

Reputation: 1419

I've tried this for myself and the RTE deosn't remove the whitespace between </span> <a href..... I Have experienced issues with the CKEditor after uprgading from 7.6 to 9.5 too.
In my case I had to cleanup my TypoScript.

If you have any old configuration in your TypoScript (RTE.whatever), remove that and try again.
Maybe you can remove all of your custom TS and check the RTE behavior to make sure the error came from there.

Upvotes: 0

Related Questions