FCKeditor myBaseHref and https site

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
ineo
Posts: 10
Joined: Fri Feb 26, 2010 2:31 pm

FCKeditor myBaseHref and https site

Post by ineo » Fri Mar 05, 2010 9:01 pm

Hi,

I used CMSimple for many years now but i think it is time to switch to CMSimple_XH. Everything seems to be working oke
except one thing I run into with the editor. One of the websites is using ssl and when I try to edit the content with
FCKEditor the variable myBaseHref is filled with the site url without the "s" so the url is:

http://my.site.domain/ instead of https://my.site.domain/ I tryed to alter this behavior by changing fckconfig.js
in the following way: FCKConfig.BaseHref = 'https://my.site.domain/' ; but that didn't change the behavior.

Anybody any idea how to solve this?

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: FCKeditor myBaseHref and https site

Post by Holger » Fri Mar 05, 2010 9:39 pm

Hi!

Check out line 110 in /cmsimple/fckeditor.php

Code: Select all

var myBaseHref = "http://'.$_SERVER['HTTP_HOST'].$sn.'" ;
The BaseHref setting gets overwritten there by creating the editor instance.
That's a bug IMO. We should check on http/https in the future.
And I think we don't need to set the BaseHref by default anyway - if I'm right :? .


Holger

ineo
Posts: 10
Joined: Fri Feb 26, 2010 2:31 pm

Re: FCKeditor myBaseHref and https site

Post by ineo » Fri Mar 05, 2010 9:47 pm

Hmm, feature of bug ? shouldn't it be set by the settings made in fckconfig.js ?

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: FCKeditor myBaseHref and https site

Post by Holger » Fri Mar 05, 2010 9:53 pm

Bug.

Those setting should be made in the custom_configuration if it's needed in a special case / setup.
If I remember right, we don't need BaseHref for a simple setup / a normal installation anymore.

I'll check it and the line get removed if I'm right.

Holger

Post Reply