This question is locked. New answers and comments are not allowed.
I am running version 3.0.5 of Sharepoint 2003 Editor. If I open a posting that has anchor links in it they get changed just by opening the posting.
I fix everything and make it all work. At this point the anchor link looks like this: <a href="#InternalLearn">. When I save the posting and test it everything works fine. If I then edit the posting again and switch to HTML view the same anchor link now looks like this: <a href="http://sharepointserver/_wpresources/RadWebParts/3.0.5.0__1f131a624888eeed/RadControls/EditorWebPart/Dialogs/ContentEditor.aspx?&WebID=d1e9bb1b-c849-40ac-93a9-b687220d2725|&Mode=Listings#InternalLearn">.
Now if I save the posting without making any changes all the anchor links no longer work. They display a page with the editor!
Has anybody else seen this? Is there a fix or workaround?
I fix everything and make it all work. At this point the anchor link looks like this: <a href="#InternalLearn">. When I save the posting and test it everything works fine. If I then edit the posting again and switch to HTML view the same anchor link now looks like this: <a href="http://sharepointserver/_wpresources/RadWebParts/3.0.5.0__1f131a624888eeed/RadControls/EditorWebPart/Dialogs/ContentEditor.aspx?&WebID=d1e9bb1b-c849-40ac-93a9-b687220d2725|&Mode=Listings#InternalLearn">.
Now if I save the posting without making any changes all the anchor links no longer work. They display a page with the editor!
Has anybody else seen this? Is there a fix or workaround?
16 Answers, 1 is accepted
0
Hello Mike,
What you need to do is set the StripAbsoluteAnchorPaths property of RadEditor to rue. This property specifies whether absolute anchor paths should be stripped. You can find more information in the following help article http://www.telerik.com/help/aspnet/editor/strippingimageandanchorpaths.html .
Since you are in MOSS environment what you need to do is modify the respective ConfigFile.xml or ListConfigFile.xml. Add the following code.
I hope this helps.
Kind regards,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
What you need to do is set the StripAbsoluteAnchorPaths property of RadEditor to rue. This property specifies whether absolute anchor paths should be stripped. You can find more information in the following help article http://www.telerik.com/help/aspnet/editor/strippingimageandanchorpaths.html .
Since you are in MOSS environment what you need to do is modify the respective ConfigFile.xml or ListConfigFile.xml. Add the following code.
| <property name="StripAbsoluteAnchorPaths">True</property> |
I hope this helps.
Kind regards,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mike
Top achievements
Rank 2
answered on 09 Mar 2009, 03:05 PM
First of all, I said I was using the SharePoint 2003 Editor which I thought would mean I was using SharePoint Portal Server 2003. I am NOT using MOSS. The editor reports in the information screen that it is the Telerik RadEditor v7.11. Just wanted to clear that up in case it made any difference.
I did try your suggestion and it did not work. I added the property setting to the ConfigFile.xml and restarted IIS. I also tried rebooting the server. After that the Anchor links still get changed. I also noticed that the help article you suggested states that IE is converting the paths when you switch to HTML mode and back to edit mode. I tried another test where I put the listing back to a good state. Then I opened the listing to the edit screen and just clicked OK (I did not make any changes or go into HTML mode). This also caused the Anchor links to be changed.
It appears this setting is not having any affect that I can see. Is there something else I need to do to activate it?
My ConfigFile.xml file is located in: C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadWebParts\3.0.5.0__1f131a624888eeed\RadControls\Editor. Is there another file that needs to be updated? I could not find a ListConfigFile.xml file. Where would that be located?
I did try your suggestion and it did not work. I added the property setting to the ConfigFile.xml and restarted IIS. I also tried rebooting the server. After that the Anchor links still get changed. I also noticed that the help article you suggested states that IE is converting the paths when you switch to HTML mode and back to edit mode. I tried another test where I put the listing back to a good state. Then I opened the listing to the edit screen and just clicked OK (I did not make any changes or go into HTML mode). This also caused the Anchor links to be changed.
It appears this setting is not having any affect that I can see. Is there something else I need to do to activate it?
My ConfigFile.xml file is located in: C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadWebParts\3.0.5.0__1f131a624888eeed\RadControls\Editor. Is there another file that needs to be updated? I could not find a ListConfigFile.xml file. Where would that be located?
0
Hi Mike,
I apologize for the inconvenience, I realized that since you are using SaraPoint 2003 there is no ListConfigFile.xml. In order to speed up the process of helping could you please send us your configuration file (ConfigFile.xml)? This way we will be able to obtain additional information about your configuration and help you further.
Thank you.
Kind regards,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I apologize for the inconvenience, I realized that since you are using SaraPoint 2003 there is no ListConfigFile.xml. In order to speed up the process of helping could you please send us your configuration file (ConfigFile.xml)? This way we will be able to obtain additional information about your configuration and help you further.
Thank you.
Kind regards,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mike
Top achievements
Rank 2
answered on 12 Mar 2009, 01:53 PM
Here is my current ConfigFile.xml file.
<configuration>
<property name="ShowHtmlMode">true</property>
<property name="ShowPreviewMode">true</property>
<property name="ImagesFilters">
<item>*.gif</item>
<item>*.jpg</item>
<item>*.jpeg</item>
<item>*.png</item>
<item>*.bmp</item>
</property>
<property name="DocumentsFilters">
<item>*.doc</item>
<item>*.pdf</item>
</property>
<property name="TemplateFilters">
<item>*.html</item>
<item>*.htm</item>
</property>
<property name="CssFiles">
<item>~/_layouts/1033/styles/custom-sps.css</item>
</property>
<property name="StripAbsoluteAnchorPaths">True</property>
</configuration>
<configuration>
<property name="ShowHtmlMode">true</property>
<property name="ShowPreviewMode">true</property>
<property name="ImagesFilters">
<item>*.gif</item>
<item>*.jpg</item>
<item>*.jpeg</item>
<item>*.png</item>
<item>*.bmp</item>
</property>
<property name="DocumentsFilters">
<item>*.doc</item>
<item>*.pdf</item>
</property>
<property name="TemplateFilters">
<item>*.html</item>
<item>*.htm</item>
</property>
<property name="CssFiles">
<item>~/_layouts/1033/styles/custom-sps.css</item>
</property>
<property name="StripAbsoluteAnchorPaths">True</property>
</configuration>
0
Hello Mike,
Please try to move the StripAbsoluteAnchorPaths item right below the ShowPreviewMode property and change the value True to true (with lower case).
so you ComfigFile.xml should look like this:
Greetings,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please try to move the StripAbsoluteAnchorPaths item right below the ShowPreviewMode property and change the value True to true (with lower case).
so you ComfigFile.xml should look like this:
| <configuration> |
| <property name="ShowHtmlMode">true</property> |
| <property name="ShowPreviewMode">true</property> |
| <property name="StripAbsoluteAnchorPaths">true</property> |
| <property name="ImagesFilters"> |
| <item>*.gif</item> |
| <item>*.jpg</item> |
| <item>*.jpeg</item> |
| <item>*.png</item> |
| <item>*.bmp</item> |
| </property> |
| <property name="DocumentsFilters"> |
| <item>*.doc</item> |
| <item>*.pdf</item> |
| </property> |
| <property name="TemplateFilters"> |
| <item>*.html</item> |
| <item>*.htm</item> |
| </property> |
| <property name="CssFiles"> |
| <item>~/_layouts/1033/styles/custom-sps.css</item> |
| </property> |
| </configuration> |
Greetings,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mike
Top achievements
Rank 2
answered on 17 Mar 2009, 01:43 PM
I made the change to the location and casing of the StripAbsoluteAnchorPaths and it had no effect. I not sure how setting this property to true will help. Isn't the default setting for this property true?
0
Hi Mike,
I suggest you to create your own content filter, which will strip the unnecessary part of the URLs.
Here is an example how to do this.
1. Register the filter with the editor. The best way to achieve this is to register an OnClientLoad function that instantiates the filter and adds it to the filters manager. So in the ConfigFile.xml add the following line.
Afterwords add the following javascript
For example you can place your javascript in the bottom of Editor\Scripts\7_0_2\ RadEditor.js .
I hope this helps.
Kind regards,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I suggest you to create your own content filter, which will strip the unnecessary part of the URLs.
Here is an example how to do this.
1. Register the filter with the editor. The best way to achieve this is to register an OnClientLoad function that instantiates the filter and adds it to the filters manager. So in the ConfigFile.xml add the following line.
| <property name="OnClientLoad">OnClientLoad</property> |
Afterwords add the following javascript
/* Use the editor onload function to register the filter with the FiltersManager */ function onClientLoad (editor) { var customFilter = new RadEditorCustomFilter(); editor.FiltersManager.Add(customFilter); }
2. Create a javascript function/class that implements one or more of the three filter methods -
- GetDesignContent - Called when the editor is moving from some other mode to DESIGN mode
- GetHtmlContent - Called when the editor is moving from some other state to HTML mode
- GetPreviewContent - Called when the editor is moving from some other state to PREVIEW mode
| function RadEditorCustomFilter() |
| { |
| this.GetDesignContent = function (content) |
| { |
| var newContent = content; |
| //Make changes to the content and return it |
| return newContent; |
| }; |
| this.GetHtmlContent = function (content) |
| { |
| var newContent = content; |
| //here you replace absolute URL |
| newContent = newContent.replace(/http:\/\/mossrtm\//g, ""); |
| return newContent; |
| }; |
| this.GetPreviewContent = null; //Not mandatory to implement. |
| } |
For example you can place your javascript in the bottom of Editor\Scripts\7_0_2\ RadEditor.js .
I hope this helps.
Kind regards,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mike
Top achievements
Rank 2
answered on 19 Mar 2009, 03:10 PM
Your instructions on how to implement a custom content filter do not work. If I add this property:
to the ConfigFile.xml the editor stops working completely. I get this message:
"Cannot find installation of RadEditor SharePoint Edition"
This method of registering the filter is also contrary to what is defined in the help file for the editor. I followed the instructions in the help file and did get the custom filter to register but then it was not being called. I modified the ContentEditor.aspx file as follows:
I added the OnClientLoad line to the definition of the RadEditor control. I then added the RadEditorCustomFilter and onClientLoad functions to the script section. This code was taken directly from the help file. All I added to the sample code was the alert statements.
When I navigate to the page with the editor on it I get the "On Load" message followed by "Filter Created" and "Filter Added". After this the editor is displayed with the content of the posting. I can switch between HTML mode and Design Mode but I never see any of the alert messages that I placed in the RadEditorCustomFilter function. It appears that the filter is never being called.
Any Suggestions?
| <property name="OnClientLoad">OnClientLoad</property> |
"Cannot find installation of RadEditor SharePoint Edition"
This method of registering the filter is also contrary to what is defined in the help file for the editor. I followed the instructions in the help file and did get the custom filter to register but then it was not being called. I modified the ContentEditor.aspx file as follows:
| <%@ Page language="c#" AutoEventWireup="false" Inherits="Telerik.WebParts.Editor.Dialogs.ContentEditor" %> |
| <%@ Register TagPrefix="rade" Namespace="Telerik.WebControls" Assembly="RadEditor" %> |
| <%@ Register TagPrefix="telerik" TagName="LoadingMessage" Src="Controls/LoadingMessage.ascx" %> |
| <html> |
| <head> |
| <title>RadEditor</title> |
| <style> |
| .ms-WPBody FORM |
| { |
| background-color:#efefef; |
| border:1px dashed #555555; |
| } |
| .ms-WPBody table |
| { |
| border-collapse:collapse; |
| } |
| .ms-WPBody table td |
| { |
| padding:2px; |
| border: #999999 1px dashed; |
| } |
| .ms-WPBody table th |
| { |
| padding:2px; |
| border: #999999 1px dashed; |
| } |
| body |
| { |
| font-family: verdana, arial, helvetica, sans-serif; |
| background: white; |
| color: black; |
| } |
| .test |
| { |
| color:green; |
| border: 1px solid red; |
| } |
| </style> |
| <script type="text/javascript"> |
| function GetEditorContent() |
| { |
| return contentEditorDialog.GetHtml(); |
| } |
| function OnSubmit(editor) |
| { |
| contentEditorDialog.OnSubmit(editor); |
| return false; |
| } |
| function OnCancel(editor) |
| { |
| contentEditorDialog.OnCancel(editor); |
| return false; |
| } |
| function RadEditorCustomFilter() |
| { |
| alert("Running Filter"); |
| this.GetDesignContent = function (content) |
| { |
| alert("Design"); |
| var newContent = content; |
| //Make changes to the content and return it |
| newContentnewContent = newContent.toLowerCase(); |
| return newContent; |
| }; |
| this.GetHtmlContent = function (content) |
| { |
| alert("HTML"); |
| var newContent = content; |
| //Make changes to the content and return it |
| newContentnewContent = newContent.toUpperCase(); |
| return newContent; |
| }; |
| this.GetPreviewContent = null; //Not mandatory to implement. |
| } |
| /* Use the editor onload function to register the filter with the FiltersManager */ |
| function onClientLoad (editor) |
| { |
| alert("On Load"); |
| var customFilter = new RadEditorCustomFilter(); |
| alert("Filter Created"); |
| editor.FiltersManager.Add(customFilter); |
| alert("Filter Added"); |
| } |
| </script> |
| </head> |
| <body style="MARGIN:0px;"> |
| <form id="mainForm" runat="server"> |
| <telerik:LoadingMessage runat="server" id="loadingMessage"></telerik:LoadingMessage> |
| <radE:RadEditor ID="contentEditor" |
| UseSharePointCss="false" |
| Width="800px" |
| Height="500px" |
| Runat="server" |
| OnClientLoad="onClientLoad" |
| OnClientSubmit="OnSubmit" |
| OnClientCancel="OnCancel" |
| CacheLocalization="False" |
| DocumentsFilters="*.*" |
| AllowThumbGeneration = "True" |
| ConfigFile="~/RadWebParts/3.0.5.0__1f131a624888eeed/RadControls/Editor/ConfigFile.xml"> |
| </radE:RadEditor> |
| </form> |
| </body> |
| </HTML> |
I added the OnClientLoad line to the definition of the RadEditor control. I then added the RadEditorCustomFilter and onClientLoad functions to the script section. This code was taken directly from the help file. All I added to the sample code was the alert statements.
When I navigate to the page with the editor on it I get the "On Load" message followed by "Filter Created" and "Filter Added". After this the editor is displayed with the content of the posting. I can switch between HTML mode and Design Mode but I never see any of the alert messages that I placed in the RadEditorCustomFilter function. It appears that the filter is never being called.
Any Suggestions?
0
Hi Mike,
There is one additional (and optional) property, used for fine-tuning the behavior of the StripAbsoluteAnchorPaths: AnchorPathToStrip . It is useful in some rare cases when the local absolute path to be stripped cannot be detected properly and has to be specified manually.
Please check if setting it will solve your problem.
Regards,
Stanimir
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
There is one additional (and optional) property, used for fine-tuning the behavior of the StripAbsoluteAnchorPaths: AnchorPathToStrip . It is useful in some rare cases when the local absolute path to be stripped cannot be detected properly and has to be specified manually.
Please check if setting it will solve your problem.
Regards,
Stanimir
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Ankit
Top achievements
Rank 1
answered on 11 Nov 2009, 08:56 AM
Hello Telerik Support,
I am facing the same achor tag issue. I tried all solutions suggested in this ticket, but didn't get any success.
We are using RADEditor for sharepoint 2003.
Even, the last suggested solution i.e. to add following property in the Configfile.xml make RADEDitor stopped working.
I am describing the issue once again:
------------------------------------------------------
Please help.
ConfigFile.xml
-------------------------
<configuration>
<property name="ShowHtmlMode">true</property>
<property name="ShowPreviewMode">true</property>
<property name="StripAbsoluteAnchorPaths">true</property>
<property name="CssFiles">
<item>/_wpresources/RadWebParts/3.0.5.0__1f131a624888eeed/RadControls/Editor/CssEditor.css</item>
</property>
</configuration>
Regards,
-Ankit
I am facing the same achor tag issue. I tried all solutions suggested in this ticket, but didn't get any success.
We are using RADEditor for sharepoint 2003.
Even, the last suggested solution i.e. to add following property in the Configfile.xml make RADEDitor stopped working.
<
property name="StripAbsoluteAnchorPaths:AnchorPathToStrip">true</property>
I am describing the issue once again:
------------------------------------------------------
The RADEditor web part on the KX portal cannot retain relative URLs. It automatically converts them to absolute URLs.
As a comparison, the content editor web part still retains relative URLs.
Whenever a user inserts a relative URL it is automatically converted to an absolute URL once the changes are saved.
We would like for the RADEditor to be able to leverage relative URLs.
-------------------------------------------------------Please help.
ConfigFile.xml
-------------------------
<configuration>
<property name="ShowHtmlMode">true</property>
<property name="ShowPreviewMode">true</property>
<property name="StripAbsoluteAnchorPaths">true</property>
<property name="CssFiles">
<item>/_wpresources/RadWebParts/3.0.5.0__1f131a624888eeed/RadControls/Editor/CssEditor.css</item>
</property>
</configuration>
Regards,
-Ankit
0
Hi Ankit,
Try if adding the following code to the respective ConfigFile.xml or ListConfigFile.xml will solve the problem.
Best wishes,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Try if adding the following code to the respective ConfigFile.xml or ListConfigFile.xml will solve the problem.
<property name="StripAbsoluteAnchorPaths">true</property><property name="AnchorPathToStrip">http://yoursiteURL<;/property>Best wishes,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ankit
Top achievements
Rank 1
answered on 16 Nov 2009, 05:36 AM
Hi Stanimir,
I have tried adding below entries to my Configfile.xml but it didn't work.
Is there anything else we can do to fix this?
<property name="StripAbsoluteAnchorPaths">true</property><property name="AnchorPathToStrip">http://development.deloitteresources.com</property>"http://development.deloitteresources.com" is my site URL.
Regards,
-Ankit
0
Hello Ankit,
Could you provide me with your ConfigFile.xml and ListConfigFile.xml? This way I will be able to try reproducing the problem on our test server.
Thank you.
Best wishes,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Could you provide me with your ConfigFile.xml and ListConfigFile.xml? This way I will be able to try reproducing the problem on our test server.
Thank you.
Best wishes,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ankit
Top achievements
Rank 1
answered on 16 Nov 2009, 08:24 AM
Hi Stainimir,
Here is my ConfigFile.xml
<configuration>
<property name="ShowHtmlMode">true</property>
<property name="ShowPreviewMode">true</property>
<property name="StripAbsoluteAnchorPaths">true</property>
<property name="AnchorPathToStrip">http://development.deloitteresources.com</property>
<property name="CssFiles">
<item>/_wpresources/RadWebParts/3.0.5.0__1f131a624888eeed/RadControls/Editor/CssEditor.css</item>
</property>
</configuration>
Thank you.
Regards,
-Ankit
0
Hello Ankit,
What you can do is upgrade to the latest version of the free Lite RadEditor for MOSS. You can download it from the following URL http://www.telerik.com/community/free-products.aspx. You can also try the trial version of the latest ASP.NET AJAX RadEditor for MOSS 5.6.0. In order to download it you should go to the Free Trials section under your account, click on the Visual Studio Extensions, DLLs, Scripts, Source Code, DNN and MOSS wrappers ... link and download the RadEditor for MOSS: (zip, 13 MB) installation.
Here are some articles regarding the AJAX version of the RadEditor for MOSS.
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax.html
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html.
Installing RadEditor in a MOSS 2007 farm
Sincerely yours,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
What you can do is upgrade to the latest version of the free Lite RadEditor for MOSS. You can download it from the following URL http://www.telerik.com/community/free-products.aspx. You can also try the trial version of the latest ASP.NET AJAX RadEditor for MOSS 5.6.0. In order to download it you should go to the Free Trials section under your account, click on the Visual Studio Extensions, DLLs, Scripts, Source Code, DNN and MOSS wrappers ... link and download the RadEditor for MOSS: (zip, 13 MB) installation.
Here are some articles regarding the AJAX version of the RadEditor for MOSS.
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax.html
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html.
Installing RadEditor in a MOSS 2007 farm
Sincerely yours,
Stanimir
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ankit
Top achievements
Rank 1
answered on 23 Nov 2009, 11:09 AM
Hi Stanimir,
We are using Sharepoint 2003 (wss 2.0) for our application. Also, its looks like the product you suggested "ASP.NET AJAX RadEditor for MOSS 5.6.0" requires MOSS 2007(wss 3.0) on the server.
Do we have any other solution keeping Sharepoint 2003 in mind?
Regards,
-Ankit