This is a migrated thread and some comments may be shown as answers.

RadEditor and HTML5 tags

3 Answers 103 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 02 Jul 2012, 10:39 AM
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

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Jul 2012, 11:37 AM
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.
0
JP
Top achievements
Rank 1
answered on 03 Sep 2012, 04:17 PM
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
0
Rumen
Telerik team
answered on 04 Sep 2012, 07:18 AM
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.
Tags
WebParts for SharePoint
Asked by
Manuel
Top achievements
Rank 1
Answers by
Rumen
Telerik team
JP
Top achievements
Rank 1
Share this question
or