RadEditor and HTML5 tags

4 posts, 0 answers
  1. Manuel
    Manuel avatar
    1 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2012 Link to this post

    Hello,
    we are using RadEditor in SharePoint 2010.
    If we put the below tags:

    <figure class="freestyl
    e left">
           <img src="/csvstories-cookingcaravan.jpg"/>
           <figcaption class="caption">
                   Caption Arial Regular 11px #666666<br />
                   Image format: Landscape 300 x 180 px
           </figcaption>
    </figure>

    RadEditor will remove it the final tags and we are not able to use it.
    Is there some specific configuration we are missing?

    thanks

    manuel

  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 02 Jul 2012 Link to this post

    Hi,

    You should disable the ConvertToXhtml filter to fix this issue. You can do that by opening the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.4.0.0__1f131a624888eeed\Resources\ConfigFile.xml / ListConfigFile.xml file
    and setting the ContentFilters property:

    <property name="ContentFilters">RemoveScripts,MakeUrlsAbsolute,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,IndentHTMLContent</property>

    The ConvertToXhtml filter should not be set.

    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  3. JP
    JP avatar
    1 posts
    Member since:
    Sep 2012

    Posted 03 Sep 2012 Link to this post

    Hello

    I'm bumping up this issue as even after doing the required updates to both config files, the HTML5 tags are still removed on save/close
    They persist when switching from design to html views however

    Here is a sample of the code we are using
    <section class="style-2">
    <header>
    <h3>Big title</h3>
    </header>
    <ul class="sep bold">
    <li><a href="#" class="more">item 1</a></li>
    <li><a href="#" class="more">item 2</a></li>
    <li><a href="#" class="more">item 3</a></li>
    </ul>
    </section>

    Only the H3 and UL /Li atre remaining after a save/close

    Any thoughts ?

    TIA, JP
  4. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 04 Sep 2012 Link to this post

    Hello,

    I tried to reproduce the issue but without success. You can see my test in the Save In Database demo in the following video: http://screencast.com/t/dnrWutZIZ. The problem is not reproducible not only in IE9 but in Firefox 15 too.

    It is also strange that you experience this issue only when submitting the content to the server, because the content displayed in Html mode is submitted unchanged to the server.

    Best regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top