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

RAD editor 5.7 making absolute URLs relative

3 Answers 95 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Doug Green
Top achievements
Rank 1
Doug Green asked on 16 Sep 2010, 05:49 PM
We're using ver 5.7.1 of the editor and it's important that we use absolute file paths when publishing links.  No matter what i try the editor always makes the link a relative path when i save the item, which will not work as our publishing site is on a different site than our front end.  The resources that we want to link to are in the publishing site but because the link is relative users are being redirected to the front end site and are getting a file not found error.  I've tried just about everything that i can find in the forums - i understand that the StripAbsoluteFilePaths has been done away with, and i've added the MakeUrlsAbsolute only seems to be a display attribute - meaning the URLs look to be absolute in the editor but are saved as relative paths.  Any suggestions on how we turn off whatever is modifying the URLs on save?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 22 Sep 2010, 08:18 AM
Hi Doug Green,

The MakeUrlsAbsolute filters is not a preview attribute and it converts the relative links to absolute not only when switching to HTML view mode but also when submitting the content.

Please, note that if you use RadEditor for MOSS in SharePoint forms scenario (Lists, Wikis, Blogs, etc.)

You need to set the MakeUrlsAbsolute filter in the the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ListConfigFile.xml file, e.g.

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

My suggestion is to also try the latest available version 5.8.1 of RadEditor for MOSS.


Kind regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Doug Green
Top achievements
Rank 1
answered on 27 Sep 2010, 08:56 PM
Thanks, Rumen -
I've updated the Config & ListConfig, as well as the Tools & ListTools files with those properties but the editor is still converting the absolute URLs to relative URLs on Save. 

Here's the code that I've added to the config files:

<property name="StripAbsoluteAnchorPaths">False</property>
<property name="ContentFilters">DefaultFilters,MakeUrlsAbsolute</property>

The tools file did not have a Properties node so i added the snippet you suggested below before teh closing root:

</contextMenus>
 <property name="ContentFilters">MakeUrlsAbsolute</property>
 </root>

Is this correct?  Or should the property snippet be placed somewhere else in the config file?

Thanks -
0
Rumen
Telerik team
answered on 30 Sep 2010, 10:50 AM
Hello Doug,

I was able to reproduce the issue. For your convenience I created a small video where you can see my test http://screencast.com/t/MmJmMzk0MDY.

Unfortunately there is now workaround for this problem. You can see the actual content which RadEditor produces when you are in Html mode of the control. However when you submit the page, MOSS will validate it and automatically change it. You can verify this by trying to enter the same content with the original SharePoint rich text editor.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Doug Green
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Doug Green
Top achievements
Rank 1
Share this question
or