Html5 Audio in Content Block/RadEditor

Posted by Community Admin on 04-Aug-2018 21:50

Html5 Audio in Content Block/RadEditor

All Replies

Posted by Community Admin on 14-Jun-2016 00:00

I'm trying to put and html5 audio tag in a content block (in a blog control) and it keeps striping out the word "controls" from the audio tag.

It works correctly in the MVC content block but not and of the webforms radEditors

<audio src="/june-6-2016---federal-tax-update.mp3"  preload="auto" controls>
<p>Your browser does not support the <code>audio</code> element.</p>
</audio>

 

Is there some setting I can change for the editor to all the word "controls" to be inside a tag?

Posted by Community Admin on 15-Jun-2016 00:00

Kris,

Try doing the following...

<audio src="" controls="controls"></audio>

 

This is because the RadEditor is trying to follow XHTML rules.  Let me know if that works.  

 

Craig

Posted by Community Admin on 15-Jun-2016 00:00

Hi Kris, 

Craig is correct, please try and use the suggested syntax.

Additional info:
http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/content-filters

http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/accessibility-and-internationalization/standards-compliance/xhtml-compliance

Regards,
Dimitri Cools
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 15-Jun-2016 00:00

Thanks, that works.

This thread is closed