Html5 Audio in Content Block/RadEditor
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?
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
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
Thanks, that works.