Hello,
We have an issue with RadEditor MOSS 2007 removing a style attribute. The original HTML in a SharePoint Wiki item contains the following:
<TD class=detailsHeader background=/PublishingImages/sectiontitle_03.gif>
When that page is ediied with RadEditor activated, that code is tranformed to:
<td style="background-image: url(/publishingimages/sectiontitle_03.gif);" class="detailsHeader">
When the page is saved, the style attribute is removed.
Can you explain why this happens, or if there is a way to prevent this behavior?
Thank you,
Craig Smith
We have an issue with RadEditor MOSS 2007 removing a style attribute. The original HTML in a SharePoint Wiki item contains the following:
<TD class=detailsHeader background=/PublishingImages/sectiontitle_03.gif>
When that page is ediied with RadEditor activated, that code is tranformed to:
<td style="background-image: url(/publishingimages/sectiontitle_03.gif);" class="detailsHeader">
When the page is saved, the style attribute is removed.
Can you explain why this happens, or if there is a way to prevent this behavior?
Thank you,
Craig Smith
8 Answers, 1 is accepted
0
Hi Craig,
In order to stop RadEditor from converting the background property to css background-image you need to add the following element to the ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder:
More information you can find in the following online help article: Content Filters.
Kind regards,
Stanimir
the Telerik team
In order to stop RadEditor from converting the background property to css background-image you need to add the following element to the ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder:
<
property
name
=
"ContentFilters"
>RemoveScripts,EncodeScripts,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,OptimizeSpans,ConvertCharactersToEntities,IndentHTMLContent</
property
>
More information you can find in the following online help article: Content Filters.
Kind regards,
Stanimir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

JEREMY BOND
Top achievements
Rank 1
answered on 07 Jan 2011, 06:16 AM
I am having a similar problem.
Using the MOSS RadEditor(5.8.5), A user creates a table, sets a background image to the table via the Table Editor. Previewing the HTML source shows the background image is set via Style reference. When the page is published or checked in as draft the CSS reference is removed.
The configfile.xml contains the following.
<configuration>
<property name="ToolbarMode">ShowOnFocus</property>
<property name="ToolsWidth">680px</property>
<property name="ContentFilters">None</property>
</configuration>
Using the MOSS RadEditor(5.8.5), A user creates a table, sets a background image to the table via the Table Editor. Previewing the HTML source shows the background image is set via Style reference. When the page is published or checked in as draft the CSS reference is removed.
The configfile.xml contains the following.
<configuration>
<property name="ToolbarMode">ShowOnFocus</property>
<property name="ToolsWidth">680px</property>
<property name="ContentFilters">None</property>
</configuration>
0
Hi Craig,
Could you confirm that your content is striped after it has been send to the sever (when you save the page) , or after you toggle between Design and Html mode of RadEditor for MOSS?
If the content is not striped on toggling between Design and Html modes, this is yet another problem, caused by the MOSS content filters. When you submit the page, MOSS will validate it and automatically make changes if the content is not valid. You can verify this by trying to enter the same content with the original SharePoint rich text editor.
Greetings,
Stanimir
the Telerik team
Could you confirm that your content is striped after it has been send to the sever (when you save the page) , or after you toggle between Design and Html mode of RadEditor for MOSS?
If the content is not striped on toggling between Design and Html modes, this is yet another problem, caused by the MOSS content filters. When you submit the page, MOSS will validate it and automatically make changes if the content is not valid. You can verify this by trying to enter the same content with the original SharePoint rich text editor.
Greetings,
Stanimir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

JEREMY BOND
Top achievements
Rank 1
answered on 12 Jan 2011, 04:03 PM
Yes, it is the content filters in MOSS. I forgot to come back and update this thread. Do you know of a way around this behavior?
If you add a Content Editor Webpart to a page you can use things styles, scripting and i Frames for embedded video.
If you add a Content Editor Webpart to a page you can use things styles, scripting and i Frames for embedded video.
0
Hi Craig,
If you use RadEditor in web part scenario, the MOSS content filters will not be applied on the submitted html code. Review the following online help article: Using the RadEditor WebPart
Regards,
Stanimir
the Telerik team
If you use RadEditor in web part scenario, the MOSS content filters will not be applied on the submitted html code. Review the following online help article: Using the RadEditor WebPart
Regards,
Stanimir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Craig
Top achievements
Rank 1
answered on 12 Jan 2011, 04:13 PM
Hello Stanimir,
The content is striped when the page is saved. The content is preserve when toggling between design and html mode. The content is preserved either wat using the SharePoint RTE.
Regards,
Craig
The content is striped when the page is saved. The content is preserve when toggling between design and html mode. The content is preserved either wat using the SharePoint RTE.
Regards,
Craig
0

JEREMY BOND
Top achievements
Rank 1
answered on 12 Jan 2011, 04:23 PM
Right! So I have two thoughts on this.
Either I build a new page type using SPD and make the page type contain a web part zone and a default RTE Webpart.
or
I figure out how to turn the filters off, because they're obviously turned off for RTEs imbedded in Webpart zones.
Either I build a new page type using SPD and make the page type contain a web part zone and a default RTE Webpart.
or
I figure out how to turn the filters off, because they're obviously turned off for RTEs imbedded in Webpart zones.
0
Hi Craig,
Unfortunately I can not provide you with information of how to turn the MOSS filters OFF. Maybe you can ask about this in some SharePoint related forum.
Best wishes,
Stanimir
the Telerik team
Unfortunately I can not provide you with information of how to turn the MOSS filters OFF. Maybe you can ask about this in some SharePoint related forum.
Best wishes,
Stanimir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.