Announcement

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

#1 2010-06-07 14:32:59

dsweet
New member
Registered: 2010-05-07
Posts: 1

Stripping domains from urls

My online application allows a user to create an online email with the Xinha editor. This email needs to contain a link to the same site which hosts the application. After updating the content in the editor, the base url is stripped from the link.

I tried to add the folllowing with no success. What other settings should be changed?

xinha_config.stripBaseHref = false;                // Switch on/off BaseHref Stripping
xinha_config.baseHref  = null;             // if stripBaseHref= true, define URL that will be stripped
xinha_config.stripSelfNamedAnchors = false;

Browser - IE 7.0.5730.11
No errors reported

Procedure

1. addded text that eventually creates an email containing a hyperlink instructing users to take training by clicking a link

Example: To take training click here.

2. Click here references a hyperlink such as: <a href="www.training.com"> click here.</a>

3. The file is saved and the link is translated to: <a href="/"> click here.</a>

Last edited by dsweet (2010-06-07 17:42:10)

Offline

#2 2010-06-07 21:07:56

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Stripping domains from urls

expandRelativeUrl maybe?

You may (probably) be better to "correct" the urls when you get the HTML to the server using some regex work.

Note in your example above though, that www.training.com is invalid, you are missing http://


James Sleeman

Offline

Board footer

Powered by FluxBB