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

[Solved] IE: param url to media files not absolute

1 Answer 117 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tarjei Knudsen
Top achievements
Rank 1
Tarjei Knudsen asked on 10 Dec 2009, 02:46 PM
Hi

I use different paths for the editor and the viewer part of my application.
Editor: http://someurl.com
Viewer: http://someotherurl.com/

When I insert any media (image, movie, file, flash) through one of the managers I use the absolute path. Images (and other media) then get the url http://someurl.com/Images/someimage.jpg when viewing from http://someotherurl.com/.
Absolute path example:
RadEditor.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute); 


The problem here is that for Movies and Flash IE uses another url param than other browsers.
Example:
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="150" height="150" type="application/x-oleobject"
<param name="URL" value="/Media/V2.avi"
<embed src="http://someurl.com/Media/V2.avi" width="150" height="150" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer"
</object> 

IE uses the value of param with name URL, all other browsers use the src value inside the <embed> tag.

How can I set RadEditor to use absolute paths on the param URL?

1 Answer, 1 is accepted

Sort by
0
Tarjei Knudsen
Top achievements
Rank 1
answered on 11 Dec 2009, 01:43 PM
SOLVED:
First attempt - fail:
I figured I had to manipulate the html (dom objects) which is sent to the editorarea from the manager. After som searching I stumbled over this article: http://www.telerik.com/help/aspnet-ajax/onclientpastehtml.html

I wrote a javascript method for OnClientPasteHtml which manipulates the value of param URL if it is MediaManager or param Movie of it is FlashManager. But IE would not accept that either (in ie the editor will not save the absolute url no matter what).

Second attempt - success:
I ended up adding a virtual folder to the media folder in the editor web application to the folder in the viewer web application. This worked.
Tags
Editor
Asked by
Tarjei Knudsen
Top achievements
Rank 1
Answers by
Tarjei Knudsen
Top achievements
Rank 1
Share this question
or