In Sitefinity 10.1.65xx.x (including 10.1.6523.0), the RADEditor removes mailto: links from a dynamic content when you save it.
Here are the steps to reproduce the issue:
- Create a new project using Sitefinity Project Manager for Sitefinity
10.1.6500.0or10.1.6502.0or10.1.6523.0. - Login in to the backend GUI and go to
Content > Newsand create a new news post. - Type some text and select it and choose the
Insert Linkbutton. - Choose the type of link as
EmailLink and give some email address there and insert it. - If you switch to HTML view now, you can see the tag as something like
<a href="mailto:<whatever-email-given>">Text</a>. - Click the
Save as Draftbutton.
You should see that the contents have changed to <a>Text</a>. Essentially the mailto: is stripped off.
Normal links work perfectly fine. And this happens in all dynamic content types like News, Blog, etc. The Content Block widgets don't have this issue.
What is going on here? Can someone please clarify?
We raised the issue in Sitefinity's forums and this is what ensued:
http://www.sitefinity.com/developer-network/forums/general-discussions-/radeditor-in-sitefinity-10-1-6500-x-removes-mailto-links-upon-save#HlbQHcE3622pWP8AAERlJg
Apparently, a new Data Processing Framework layer is introduced in Sitefinity in
10.1.xxxx.xthat is breaking Sitefinity's own functionality. I've no idea why a majority of the people weren't able to replicate the issue. But the solution involves extending the default XSS Sanitizer and adding thetel:andmailto:protocols to the default whitelist. The answer is described in detail here: https://knowledgebase.progress.com/articles/Article/Shared-Content-Block-and-Long-Text-Field-filters-HTML-even-after-setting-RadEditor-filters-to-None