Hi All,
We are currently trying to modify our internal CMS system to handle multiple websites and have had difficulty getting the basehref feature working correctly.
The Sites structure is as follows
/
/site_1
/site_1/images
/site_2
/site_2/images
The user edits the sites locally and when they are happy with the results they then choose an upload feature which FTP's the site up to the live server.
When using the inbuilt BaseHref feature of FCKeditor we assumed that it would prepend the value there to all images and links however it appears it is only prepended to relative images.
So results are
images/this.jpg (prepends BaseHref for display purposes)
/images/this.jpg (does prepend BaseHref for display purposes)
I understand that FCKeditor is behaving as it should however I would like to override the detection of links and images that start with a / to alway prepend with the BaseHref.
I have found the section of code (editor/dialog/fck_image/fck_image.js - UpdateImage) which handles it for the image insertion dialog box but cannot find where this happens in the primary editor. Can someone please point me to where FCKeditor performs the display of an image in the primary editor window?
Thankyou
We are currently trying to modify our internal CMS system to handle multiple websites and have had difficulty getting the basehref feature working correctly.
The Sites structure is as follows
/
/site_1
/site_1/images
/site_2
/site_2/images
The user edits the sites locally and when they are happy with the results they then choose an upload feature which FTP's the site up to the live server.
When using the inbuilt BaseHref feature of FCKeditor we assumed that it would prepend the value there to all images and links however it appears it is only prepended to relative images.
So results are
images/this.jpg (prepends BaseHref for display purposes)
/images/this.jpg (does prepend BaseHref for display purposes)
I understand that FCKeditor is behaving as it should however I would like to override the detection of links and images that start with a / to alway prepend with the BaseHref.
I have found the section of code (editor/dialog/fck_image/fck_image.js - UpdateImage) which handles it for the image insertion dialog box but cannot find where this happens in the primary editor. Can someone please point me to where FCKeditor performs the display of an image in the primary editor window?
Thankyou