+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Html5 Audio in Content Block/RadEditor

Html5 Audio in Content Block/RadEditor

4 posts, 0 answered
  1. Kris
    Kris avatar
    16 posts
    Registered:
    24 Sep 2012
    14 Jun
    Link to this post

    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?

  2. Craig
    Craig avatar
    45 posts
    Registered:
    28 Sep 2008
    15 Jun in reply to Kris
    Link to this post

    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

  3. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    Registered:
    23 Sep 2016
    15 Jun
    Link to this post
    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
     
  4. Kris
    Kris avatar
    16 posts
    Registered:
    24 Sep 2012
    15 Jun in reply to Dimitri Cools
    Link to this post
    Thanks, that works.
4 posts, 0 answered