FCKEditor Background Color

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

FCKEditor Background Color

Post by gdelorey@mitcs.com » Fri Aug 07, 2009 12:20 pm

I'm trying to use the FCKEditor when editing some content pages, however, the editor pulls in the background color of my site (dark green) since it's using an iframe. Is there any way to modify the editor CSS or something else to render the background in white so it is readable?

Thanks,

: Greg

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: FCKEditor Background Color

Post by mazhar » Sat Aug 08, 2009 1:52 am

Edit Admin/Utility/EditHtml.aspx and locate following property code

Code: Select all

protected string EditorAreaCSS
    {
        get
        {
            string theme = GetStoreTheme();
            return this.Page.ResolveUrl("~/App_Themes/" + theme + "/style.css");
        }
    }
then change it as below

Code: Select all

protected string EditorAreaCSS
    {
        get
        {
            string theme = GetStoreTheme();
            //return this.Page.ResolveUrl("~/App_Themes/" + theme + "/style.css");
            return this.Page.ResolveUrl("~/FCKeditor/css/fck_editorarea.css");
        }
    }

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: FCKEditor Background Color

Post by gdelorey@mitcs.com » Mon Aug 10, 2009 11:21 am

Hi Mazhar -

Worked great, however, that seems to have created another issue. When I go to edit a content page using the editor, all of the existing source code (or page content) does not appear in the FCKEditor - it's blank. However, if I refresh the page, the content still exists and looks fine, but when I hit the 'HTML' button the editor loads without any of the code.

I tried logging out, back in and still experience the same issue.

Thanks,

: Greg

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: FCKEditor Background Color

Post by mazhar » Tue Aug 11, 2009 6:05 am

May be its something due to new style sheet we referenced. What about just returning an empty string and test it again. For example something like

Code: Select all

protected string EditorAreaCSS
    {
        get
        {
            //string theme = GetStoreTheme();
            //return this.Page.ResolveUrl("~/App_Themes/" + theme + "/style.css");
            return string.Empty;
        }
    }

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: FCKEditor Background Color

Post by gdelorey@mitcs.com » Wed Aug 12, 2009 3:21 pm

Mazhar -

I must've done something else to that file on accident; even after reverting changes, my content was still not visible. I've followed your first instructions again after restoring the file, and it works perfect.

Thanks,

: Greg

combra
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Thu Jul 31, 2008 7:09 pm

Re: FCKEditor Background Color

Post by combra » Wed Aug 12, 2009 7:14 pm

gdelorey@mitcs.com wrote:Mazhar -

I must've done something else to that file on accident; even after reverting changes, my content was still not visible. I've followed your first instructions again after restoring the file, and it works perfect.

Thanks,

: Greg
What version of AC are you using? There use to be a bug with Firefox and the FCKeditor with the older versions of AC, but has been fixed since in 7.0.3.

-Brandon
AC 7.0.7 build 14600

User avatar
Kalamazoo
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Wed Apr 01, 2009 6:10 pm

Re: FCKEditor Background Color

Post by Kalamazoo » Tue Jul 06, 2010 5:53 pm

We found that the background color bled through as well and here is what we did:

Find the File in the folder FCKeditor called fckconfig.js

In the file: change from

Code: Select all

 FCKConfig.EditorAreaStyles = "";
TO

Code: Select all

FCKConfig.EditorAreaStyles = "html{background:#FFFFFF;}";

and voila! the background cannot bleed through.

You can now set the background color not only white but to the actual color of the background color you skinned your site in with.

Have a great day!

Phil Chrisman
312-446-8993

Post Reply