Announcement

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

#1 2009-02-25 15:49:36

clwoodson
New member
Registered: 2009-02-25
Posts: 2

maintain image source

Hi all,

I would like to paste HTML code into Xinha textarea and have Xinha maintain the code exactly as it was pasted. I have already added the line:    xinha_config.fullPage = true;

to my config file. My next problem is with image sources. The code that I have pasted it an absolute URL and Xinha changes it to a relative URL. How can I stop it from doing that?

Regards,
Chris

Offline

#2 2009-02-26 05:35:32

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: maintain image source

Xinha normally strips out the server part from absolute URLs that point to the server Xinha runs on. That happens because the browsers tend to transform relative and semi-absolute URLs to absolute ones, which is usually unwanted.

You can switch that off by setting

xinha_config.stripBaseHref = false;

see http://xinha.raimundmeyer.de/JSdoc/Xinh … ipBaseHref

Offline

#3 2009-02-26 09:59:05

clwoodson
New member
Registered: 2009-02-25
Posts: 2

Re: maintain image source

Vielen Dank Ray. Diese Website hab ich irgendwie net gefunden.

Geiles App!

Gruß,
Chris

Offline

Board footer

Powered by FluxBB