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...Administration ...Administration ...Telerik Styling Nightmare...Telerik Styling Nightmare...
Previous
 
Next
New Post
2/16/2011 10:53 AM
 
I have switched from the dnnWerk.Telerik  provider back to the internal DNN Telerik provider because I still could not figure out the issues with the styling. Below are screen grabs of what I mean. Can someone please explain why there are such differences. My clients are really not happy with this. I have no idea what is wrong. Shoudln't this use the same exact styles mentioned in the styles.css file of the skin folder?


 
New Post
2/17/2011 12:45 AM
 
If you use the dnnwerk provider - you need to setup an editor.css file in your skin folder - with the styles you want rendered in the radeditor.

Then in the dnnwork config util set the cssfile to /editor.css - this will tell radeditor to use the editor.css file explicitly - it will also populate the stylesheet drop down properly as well.

Oh and as a tip dont just copy your skin.css file - it works better if you cull out the style elements that are not relevant - that is things like the menu styles and contentpane type layout elements.

The thing to understand about the radeditor is that it uses and IFRAME wrapper to display itself
 - which does not inherit any of the multiple .css files that can be buried on a dnn page - from default.css to portal.css to skin.css to container.css

In the default version if i recall only skin.css gets passed in - but not the default.css or portal.css or container.css or any of the combination of skinwidget type scaler .css files in some skins - though never been a 100% sure on this - it eventually all got rather messy.

We gave up on all that messing and moved to using editor.css with ALL the styles that area need for font look and fell and the dnnwerk provider - it works perfectly - showing exactly the same colors, fonts, spacings and styles used when the site renders.  Our clients love it

 Westa
 
New Post
3/7/2011 5:48 PM
 
Wes:

Your post is encouraging to me. If I may, I would like to ask a couple questions.

We have been struggling with trying to achieve as close to WYSIWYG as possible with the editor but have always had issues. dnnWerk has been a big help, but we still seem to be missing an important piece to the puzzle.

We have multiple websites which we are responsible for and of course each one is different. Some of the sites the WYSIWYG is pretty close, but others are way off. Could you maybe provide an example of how you set up your editor.css file? Are there any other files we need to be concerned with besides editor.css?

Secondly, do you have any sites or pages where the background color is not white? We have one site that the background is black and this seems to pose an additional problem for the editor.

Thank you in advance for your help/suggestions.
Roger
 
New Post
3/7/2011 8:28 PM
 
Hi Roger,

One of the reasons we first moved to the dnnwerk provider was because of a site we had that was light text on a dark background.

Basically the thing you need to understand is that a finished dnn layout can be a combination of a lot of different .css files.

container.css
containername.css
skin.css
skinname.css
portal.css
default.css

So for starters what we do with all our sites is normalize the css into one single skin.css as much as possible.
This can also bring some noticeable performance boosts as well.

Note - this is not always possible for containers depending on your container design

We then take this skin.css file and remove all the elements that are not needed for content layout - these are things like the MENU and ControlPanel and contentPane style layout definitions.

This resulting stripped down style list is then copied into an editor.css file and placed in that skins folder - in the dnnwerk config we then set /editor.css as the rad editor stylesheet.

There is nothing magical about the editor.css file - to get wysiwyg however - it MUST contain all the style elements that are effecting the final look of your dnn site ... the rad editor is running inside an IFRAME and as such does NOT inherit any of the styles that exist in your dnn site ...   if  you dont use the editor.css type functionality - then rad will try and guess by referencing if I recall the skin.css file alone - but without any of the core defaults for stuff from portal and default and skinname as well.  -   oh and specifically not as a rule the background color markup for the dark background page - which is often in peoples skins NOT defined in .body but instead as a color at the container level.

In editor.css - you simply define it in the body style markup - and it becomes the backcolor for that editor layout.

Westa
 
New Post
3/10/2011 12:09 PM
 

Hi Wes

Thanks for your clear and useful explanations. I did not know that the editor opens in an iFrame but it explains why resize can be flakey and also why the editor cannot read my skin styles.

Off to add lots more styles to my editor.css files now.

Thanks

Ian


Mutate and Survive
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Telerik Styling Nightmare...Telerik Styling Nightmare...


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