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

image path

Support forum for WYMeditor.

image path

Postby marian01 on Wed Jul 09, 2008 5:52 pm

I've added my own extension for inserting image to editor.
i'm using paste() to pass html but if i insert code like
Code: Select all
<img src="/path/to/file" />

it is changed to
Code: Select all
<img src="../../../../path/to/file" />

why is that?
i'm sure that i give good code - checked with alert() in paste function
please help
marian01
 
Posts: 1
Joined: Wed Jul 09, 2008 4:48 pm

Re: image path

Postby jfh on Wed Jul 09, 2008 8:39 pm

User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Re: image path

Postby nandoflorestan on Mon Nov 24, 2008 9:54 pm

Actually, when I add an image with a rooted URL such as /static/images/square.gif, it stays like that until I drag the image.

Dragging the image has the unfortunate side effect of rewriting the SRC as "../../../../static/images/square.gif".

This is using Firefox 3. Whose bug is it? (I hope it is WYMeditor's...)
nandoflorestan
 
Posts: 1
Joined: Mon Nov 24, 2008 9:48 pm

Re: image path

Postby bally on Mon Feb 16, 2009 10:31 pm

0.5-b2, jquery 1.3.1

I'm having this same problem. In my situation, the URLs are being inserted into the editor. They are complete URLs (http://...) also.

Code: Select all
$('#newsletter_posts_list a').click(function(e)
{
   $.wymeditors(0).insert('<h6><a href="'+this.href+'" title="">'+$(this).text()+'</a></h6>');
   e.preventDefault();
});


JF, can you tell me a bit more about why this is happening? I've been trying to track this down in the source but haven't found anything. And, if I do figure out how to stop this, I don't want to break anything, obviously.
bally
 
Posts: 4
Joined: Mon Dec 15, 2008 12:27 am

Re: image path

Postby eadevel on Fri Feb 20, 2009 3:25 pm

eadevel
 
Posts: 22
Joined: Thu Sep 27, 2007 12:00 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron