Fixing the doctype error in Typo3 RTE

With just one simple line of code.

Recently we got a couple of clients who weren't able to edit their sites anymore, since all they got to see was a !DOCTYPE error in the Richt Text Editor. The only way to edit anything, like the text with this error is via HTML. Not the way our clients want to edit their sites, since they hardly know anything about HTML.

So we had to fix this.

The error says this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-transitional.dtd"><html><head></head><body></body></html>

And when you take a look in the backend of TYPO3 and open one of the content elements they will look like this:

Created by Daniel on 11/22/2024

Copyright © DanielKnows.com 2019 - 2024 - Built with NuxtJS

Subscribe for Tech Tips!

Stay updated with the latest tech insights and tips. Subscribe now!

{}