Forum closed. New forum available at http://community.wymeditor.org/

Wrong Relative Image path

Support forum for WYMeditor.

Wrong Relative Image path

Postby klgmedia on Tue Apr 28, 2009 4:33 pm

This is proberbly related to the usual "image path problem" that has already been discussed several times before.
I haven't found an answer..

Related: (i think)
http://trac.wymeditor.org/trac/wiki/AbsoluteURLs
http://forum.wymeditor.org/forum/viewtopic.php?f=2&t=353&sid=598fde10839158c79ec1f94e8fa962bb
http://forum.wymeditor.org/forum/viewtopic.php?f=3&t=57

The problem is that absolute urls is replaced with relative urls when an image is moved within the editor, But, the relative urls are wrong..
(FireFox3)

To test the "main"-problem:
1. Go to the examplepage: http://files.wymeditor.org/wymeditor/tr ... basic.html
2. Copy this image url: http://files.wymeditor.org/wymeditor/tr ... r_icon.png
3. Set the marker in the end of the "Hello world!"
4. click the "image" icon
5. paste the url
6. click submit.
(The image is now inserted with full absolute url)
7. click and drag the image to the end of the line
8. now check the source that's generated..

In this case the src becomes: "../../skins/wymeditor_icon.png", and this is the "correct relative" version. (The image still work in the editor).
In my case "http://www.domain.se/admin/images/img.jpg" becomes "../../../../../../../../images/img.jpg" witch translates to "http://www.domain.se/images/img.jpg" ("admin/" is missing)..

I should probably mention that I've made a filebrowser in the imageDialog, but it uses the stock src input...
klgmedia
 
Posts: 3
Joined: Wed Apr 15, 2009 8:49 pm
Location: Sweden

Re: Wrong Relative Image path

Postby adamb78 on Fri May 08, 2009 5:22 pm

adamb78
 
Posts: 5
Joined: Wed Mar 25, 2009 4:10 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron