Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-08-26 17:50:47

dsuna
New member
Registered: 2006-06-26
Posts: 2

ImageManager inserting relative path links

I have xinha running using the ImageManager plugin.  I would like to have it insert the images using a relative path rather than a full http://www... path.  Is there a way to get ImageManager to do that?  I can post process the data to take out the full path but I would prefer to do this the "right" way.

Offline

#2 2006-08-26 21:24:14

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: ImageManager inserting relative path links

Humm, if you want only ImageManager's links to be relative instead of absolute, i dont know if there is a way. However, there is a configuration variable in Xinha to do it, but that's will affects *all* links on your document.

config.stripBaseHref = true;
config.baseHref = 'http://www.yourDomain.com';

If you creating Xinha instances using the way explained in newbie guide, it will be something like this

xinha_config = new HTMLArea.Config();
xinha_config.stripBaseHref = true;
xinha_config.baseHref = 'http://www.yourDomain.com';

Offline

Board footer

Powered by FluxBB