Page 1 of 1

Xinha strips image path when dragged

Posted: Sun Mar 22, 2009 7:16 am
by vincem
I'm having an issue with image paths within an entry which I assume is related to Xinha.

I don't use the media library for my entries and just link to images manually with the toolbar button. I've always been using this kind of path:

Code: Select all

"/serendipity/uploads/imagename.jpg"
without a problem.

As it is now, I can still add an image to an entry with the toolbar button, write my full path and save the entry. Everything stays fine. However if I grab the image in WTSIWYG mode and move it around in the entry body, the full path gets stripped and I am left with only

Code: Select all

"uploads/imagename.jpg"
which works on the startpage but not in archives.

A search among previous posts revealed this similar issue:
http://board.s9y.org/viewtopic.php?f=4& ... image+path
but it was a long time ago, Xinha has probably changed, and I tried the following htaccess fix without any luck:

Code: Select all

RewriteRule ^archives/[0-9] -[0-9] /[0-9] /uploads/(.*) uploads/$1 [NC,L,QSA]
RewriteRule ^archives/[0-9] -[0-9] /[0-9] /images/(.*) images/$1 [NC,L,QSA]
Am I close?

Cheers,
Vince

Re: Xinha strips image path when dragged

Posted: Mon Mar 23, 2009 12:37 pm
by garvinhicking
Hi!

Are you using serendipity 1.4.1 with the internal Xinha editor? Or are you talking about the external Xinha plugin?

Regards,
Garvin

Re: Xinha strips image path when dragged

Posted: Mon Mar 23, 2009 2:58 pm
by vincem
Hi Garvin,

I'm using V1.4.1 with the new internal Xinha.

Regards,
Vince

Re: Xinha strips image path when dragged

Posted: Mon Mar 23, 2009 3:23 pm
by garvinhicking
Hi!

Yeah, it does the same for me, too. This is a bug in Xinha, we'll need to contact the Xinha developers on this. I'm a bit out of time right now, would you maybe want to ask for help on their forums, so that we might find a fix for it? I'm sure it's either a missing configuration directive or a bug in the version we are using (0.95) ...

Regards,
Garvin

Re: Xinha strips image path when dragged

Posted: Mon Mar 23, 2009 3:29 pm
by garvinhicking
Hi!

Googling for a bit I found this:

http://xinha.webfactional.com/ticket/448

It says, that it's FF's fault, and that a config option is set to TRUE for it. The sourcecode also shows that it's set to TRUE - but it still fails. It might be that a recent Firefox built reintroduced trouble to this issue?! At least I can reproduce your trouble on my installation (latest FF3)

Regards,
Garvin

Re: Xinha strips image path when dragged

Posted: Mon Mar 23, 2009 4:29 pm
by vincem
Thanks for the info Garvin, I should at least be able to use IE for the time being. I'll give it a try tonight. And I will also post the question on the Xinha forum.

Cheers,
Vince