Issue Bug Closed

#94917styles.content.allowTags not working, renderd iframe as <iframe>

Peter Friesen 08/17/21, 21:55 updated 06/05/24, 11:08

Description

I run a small news website. I sometimes put iframe html-code in tx_news articles.

With TYPO3 10.4.19

<iframe src="..."></iframe>

will be transformed into

&lt;iframe src=&quot;...&quot;&gt;&lt;/iframe&gt;

after saving the article in ckeditor.

Since TYPO3 10.4.20, the iframe-code will be saved correctly in the editor. But unfortunately it is still rendering incorrectly on the homepage.

I have following in my template constants. I successfully checked it with TypoScript-Object-Browser.

styles.content.allowTags:= addToList(iframe)

In ckeditor preset yaml i have this (excerpt):

processing:
  allowTags:
    - iframe
    - img

editor:
    config:
        extraAllowedContent: "iframe,img"

It seems to be an additional problem with htmlSanitize.

Thanks :)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.