You are not logged in.
Pages: 1
Hello.
I've been trying Xinha (Revision: 1263) and noticed a problem with href and src.
What happens is the following:
<a href="../link/">link</a>
<!--becomes-->
<a href="/link/">link</a>
and
<img src="../images/image.jpg" />
<!--becomes-->
<img src="/images/image.jpg" />
With the "Latest Nightly":
<a href="../link/">link</a>
<!--becomes-->
<a href="/xinha-nightly/examples/link/">link</a>
and
<img src="../images/image.jpg" />
<!--becomes-->
<img src="/xinha-nightly/examples/images/image.jpg" />
Is it possible to keep exactly what was written or disable this behaviour through the options?
Offline
See the following configuration items...
/** If true, relative URLs (../) will be made absolute.
* When the editor is in different directory depth
* as the edited page relative image sources will break the display of your images.
* this fixes an issue where Mozilla converts the urls of images and links that are on the same server
* to relative ones (../) when dragging them around in the editor (Ticket #448)<br />
* Default: <code>true</code>
* @type Boolean
*/
this.expandRelativeUrl = true;
/** We can strip the server part out of URL to make/leave them semi-absolute, reason for this
* is that the browsers will prefix the server to any relative links to make them absolute,
* which isn't what you want most the time.<br />
* Default: <code>true</code>
* @type Boolean
*/
this.stripBaseHref = true;
James Sleeman
Offline
Thanks, that works.
Offline
Pages: 1