Search code examples
htmlckeditortypo3typo3-8.xtypo3-8.7.x

Typo3 8.7.7 CKEditor: E-Mail link not working (a tag removed)


I'm trying to insert an e-mail address with the ckeditor. After I saved my content element (text&media), the source code showing the ckeditor looks fine

<a href="mailto:[email protected]" title="lalala">[email protected]</a>

But when I visit the webpage only the following is visible:

some(at)mailaddress.com

I found out, that the problem is the spam protection. If I enable

config.spamProtectEmailAddresses = 1

The mail not rendered anymore. It's working without protection, but I want to use it.

Thank you for help.


Solution

  • I found it out! The problem was at my fluid template. I wrapped the {CONTENT} variable with

    <f:format.html parseFuncTSPath="lib.parseFunc">{CONTENT}</f:format.html>
    

    It's working now after I changed this to

    <f:format.raw>{CONTENT}</f:format.raw>