22 Aug 2012
10 Jan 2008
Link to this post
We came across an issue where we have placed some code in an editor for a generic content item. The links are set using relative paths. The problem occurs when in Firefox if you copy the code in the design mode of RadEditor and try to paste into a new generic content item's RadEditor, also in design mode, the paths are changed. We used a leading "/" to specify the root of the site. When pasting the html copied from the RadEditor, the links are now changed to "../../" to get to the root of the site.
This will cause the site to through and error when trying to render the content of the RadEditor to an ITextControl. Since these are not absolute paths, RadEditor does not strip them upon submitting. I tried to specify the "../../" in the AnchorPathToStrip and the ImagePathToStrip to see if it would remove it but no luck.