Announcement

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

#1 2010-10-13 06:27:03

LeMacabre
New member
Registered: 2010-10-06
Posts: 8

Something cuts the IP in my Img src

Hi it's me again.

Now there is a problem again: I created a little image-plugin. So now I have only to type in an ID and my site creates a full link.
At the moment the link starts with "http://" and an IP.
Everytime when I switch between the WYSIWYG-Mode and the HTML-Mode or save the HTML-Code Xinha deletes th beginning part. Why?
When I am using my host entry (a pseudo-domain which is mapped to the same IP) it runs normal.

For the tests I have to use the IP.

Thx in ahead.

Offline

#2 2010-10-13 18:35:25

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

Re: Something cuts the IP in my Img src

See the following config options, particularly stripBaseHref

  // specify a base href for relative links
  /** Specify a base href for relative links<br />
   *  ATTENTION: this does not work as expected and needs t be changed, see Ticket #961 <br />
   *  Default: <code>null</code>
   *  @type String|null
   */
  this.baseHref = null;

  /** 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

#3 2010-10-22 02:28:02

LeMacabre
New member
Registered: 2010-10-06
Posts: 8

Re: Something cuts the IP in my Img src

Ah thx for the info smile I will change it today.

Last edited by LeMacabre (2010-10-22 02:28:18)

Offline

Board footer

Powered by FluxBB