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

Forums / Bugs & Issues / RadEditor Moving Article HTML5 tag

RadEditor Moving Article HTML5 tag

3 posts, 0 answered
  1. Greg
    Greg avatar
    82 posts
    Registered:
    08 Aug 2012
    13 Jun 2014
    Link to this post

    Hi -

    Within SF 7, we have a content block that looks like:

    <div> <input type="radio" name="accordion-1" id="ac-2"> <label for="ac-2">operate a shared use  lock</label> <article class="ac-larges"> <p><iframe width="100%" height="400" frameborder="0" align="middle" src="http://www.test.com/index.html" scrolling="no"></iframe></p> </article> </div>

    It works the first time you save the RadEditor window. However, when you go back in, the closing article tag is moved right behind the opening article tag like this:

    <div> <input type="radio" name="accordion-1" id="ac-2"> <label for="ac-2">operate a shared use lock</label> <article class="ac-larges"> </article> <p><iframe width="100%" height="400" frameborder="0" align="middle" src="http://www.test.com/index.html" scrolling="no"></iframe></p> </div>

    How can we prevent RadEditor from moving this code? It breaks our content every time?

    Thanks,

    Greg

  2. Elena Ganeva
    Elena Ganeva avatar
    36 posts
    Registered:
    09 Dec 2016
    17 Jun 2014
    Link to this post

    Hello Greg, 

    The issue that you mentioned is caused because this is the default behavior of the RadEditor. The RadEditor by default modifies the content of the HTML5 tags in order to keep the support of the old browsers. If you want to prevent this behavior you can try the following:

    1) Download the attached files, extract the archive and add the files inside your SitefinityWebApp project

    2) Go to your site’s Administration > Settings > Advanced page and open the Controls > ViewMap node. Create a new entry and for the HostType, enter Telerik.Sitefinity.Web.UI.Fields.HtmlField. Then enter the path to your custom template file in the LayoutTemplatePath property. 

    If you need any additional information on this matter please do not hesitate to ask


    Regards,
    Elena Ganeva
    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
     
  3. Matt
    Matt avatar
    42 posts
    Registered:
    25 Jan 2012
    04 Dec 2014 in reply to Elena Ganeva
    Link to this post
    Thank you Elena, this fixed the issue for us mostly, however, if we use the rad editor's code snippet drop down (toolsfile.xml) to drop some HTML into the page and that HTML has an HTML5 element in it, it sill will move the closing tag to right after the opening tag. If you manually correct it, then the rad editor doesn't move your tag again, but is there a way to prevent this from happening when initially dropping in HTML from the code snippet drop down? Thanks!!
3 posts, 0 answered