Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Body Background Styles appear in FCK EditorBody Background Styles appear in FCK Editor
Previous
 
Next
New Post
1/18/2009 3:33 PM
 

I am having a problem with my new skin that I cannot overcome - my body styles are appearing in the FCK Editor. 

I encountered this when I first started using DNN, and curbed the problem with a simple table fix.  I would simply put in a table with a width and height property of 100% (for both), and style it as I would the body, and then place my layout within that table.

I am now designing in XHTML Div layouts, and cannot overcome the problem.

In my skin.css file, i have set the the following styles to the "body" class:

body {
    margin: 0px;
    padding: 0px;
    height: 100%;
    background-image: url('images/bodybg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #015bb1;
}
 

When I have the Admin Skin (4.9.1) or Edit Skin (5.0.0) set to my skin, if I click "Edit Text" on a Text/HTML module, the body styles display in the editing area of the FCK editor!  I checked out the DOM Selection source, and found that the FCK Editor has its own "body" like so (in file: fckeditor.htm):

<body>
    <table style="height: 100%; table-layout: fixed;" cellpadding="0" cellspacing="0" width="100%">
        <tbody><tr id="xToolbarRow" style="">
            <td id="xToolbarSpace" style="overflow: hidden;">etc, etc, etc...
 

I have tried to overcome this in a similar way as I used to with tables, by placing an out in my skin, like so:

<div class="skinbody">
    <div class="skinwidth">
    </div>
</div>
 

And then setting my CSS like so:

body {
    margin: 0px;
    padding: 0px;
    height: 100%;
}
html {
    height: 100%;
}
.skinbody {
    width: 100%;
    height: 100%;
    margin: 0px auto;
    background-image: url('images/bodybg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #015bb1;
}
.skinwidth {
    width: 960px;
    margin: 0px auto 0px auto;
    background-color: #fff;
}
 

BUT, the 100% height here is only read by browsers as 100% of the browser window height. 
I've even tried overwriting the Class/ID of the editing area in my skin.css file with: (the class can be originally seen in /Providers/HtmlEditorProviders/Fck/FCKeditor/editor/skins/Office2003/fck_editor.css)

#xEditingArea {
    background-color: #fff;
}
.xEditingArea {
    background-color: #fff;
}
 

But this does nothing.  It seems the body is definitely the problem.  I checked out if the same happens in the default MinimalExtropy Skin, and it does.  This "error" also appears in the "body" of the fckimagegallery dialogue, the image preview in the fck image properties dialogue, etc.


I think this is one for the DotNetNuke Skinning Team.  How do I curb this..?  Please help.  I can send you my skin files if need be...

Thanks
Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
1/18/2009 4:11 PM
 

use #Body, that's the ID, the main body tag has, but the text editors Body tag does not.

 
New Post
1/18/2009 4:57 PM
 

Hi Timo

Thank you for your response.

Your solution does work.  BUT the body / #Body style still appears in the FCK's Image Gallery Dialogue (i.e. if you click "Browse Server" when inserting an image - fckimagegallery.aspx), and the Links Gallery Dialogue (fcklinkgallery.aspx) which both also utilize the "Body" ID.

This is not ideal when the body has a background colour, or background image that is dark.  You can't read the text.

Seems like such a stupid thing to be querying, I know, but for skin developers its important so as not to mess up clients usability of the site.  Is there no other way of me laying out my div structure (in a similar way to the table fix - width 100 / height 100 - I mentioned above)...?  Or is there no other solution CSS-wise that can curb this?

I tried the following too, but only gives results in FireFox:

body {
    margin: 0px;
    padding: 0px;
    height: 100%;
}
html {
    height: 100%;
}
.skinbody {
    width: 100%;
    height: 100%;
    margin: 0px auto;
    background-image: url('images/bodybg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #015bb1;
    display: table; (so that the div will display to 100% of content, not browser height)
}

.skinwidth {
    width: 960px;
    margin: 0px auto 0px auto;
    background-color: #fff;
}
 

And Div layout like this:

<div class="skinbody">
    <div class="skinwidth">
</div>
</div>
 

This doesn't work in IE, Chrome and Opera though...

I'm stumped.  Your expertise is greatly appreciated here.

Thanks
Jon



 


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
1/18/2009 7:42 PM
 

No it's not stupid.

Remember you will have to set the height of the form to 100% too in DNN 5 for your example to work.

I logged the issue here:

http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=9244&PROJID=2

 

 
New Post
1/19/2009 12:52 PM
 

Hi Timo

Thank you for your knowledge sharing and assistance in logging the issue.

I trust that the core team will be able to sort out the issue with the next release / update (if not sooner, somehow).

Regards
Jon
AKA Methuzala

 

 


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Body Background Styles appear in FCK EditorBody Background Styles appear in FCK Editor


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out