If you want to stick with the MOSS Hyperlink Manager tool, there is a great solution to this posted by Stanimir of the Telerik team at:
http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/absolute-urls-to-images-documents.aspx#680247
detail from link posted below:
1. You should use the OnClientLoad property of the RadEditor to attach a handler. To do this you should add the following line in the ConfigFile.xml
| <property name="OnClientLoad">OnClientLoad</property> |
2. You can use MOSSEditorTools.js to add custom java script code to RadEditor. There you should define the OnClientLoad handler and your custom content filter.
Here is an example that you may find useful:
| function OnClientLoad(editor, args) |
| { |
| editor.get_filtersManager().add(new MyFilter()); |
| } |
| |
| MyFilter = function() |
| { |
| MyFilter.initializeBase(this); |
| this.set_isDom(false); |
| this.set_enabled(true); |
| this.set_name("RadEditor filter"); |
| this.set_description("RadEditor filter description"); |
| } |
| MyFilter.prototype = |
| { |
| getHtmlContent : function(content) |
| { |
| var newContent = content; |
| |
//here you replace absolute URL
|
| newContentnewContent = newContent.replace(/http:\/\/mossrtm\//g, ""); |
| return newContent; |
| }, |
| |
| getDesignContent : function(content) |
| { |
| var newContent = content; |
| return newContent; |
| } |
| } |
| |
| MyFilter.registerClass('MyFilter', Telerik.Web.UI.Editor.Filter); |
Just add this code at the end of MOSSEditorTools.js .
Once you follow these steps, the absolute part of the URL should be stripped.