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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorChanging default font in FCKeditorChanging default font in FCKeditor
Previous
 
Next
New Post
4/9/2007 11:29 AM
 

The extensive effort I put into my skin.css file wasn't primarily done to make the FCKeditor work.

It was done in order to be able to quickly build tables CSS skins for my site. I had discovered that changing the type sizes, color, physical layout on an existing skin to get a new skin was much more work than it should be.  By separating this correctly once, I can focus on the effort at hand, and limit both the number places to tweak the number of side effects. 

The fact that I figured out some of the witchcraft required to make the FCKeditor see the same view of the world was a pleasant side effect.

Now i need to figure out how to put several related skins in the same zip file and how I should name the .css files. For example, DNN has several "blue" sinks in the same zip file. They even have both horizontal and vertical menus in the same zip file. This can be done because there is a lot of context for the tables in the .aspx file.

With an all css (div based) skin it is mostly in the .css file.  So do I:

Create matching aspx and .css files (design1.aspx & design.css) for each design and have no skin.css? - This will make for lots of duplicate code/classes and many places to fix an error

Do I have several aspx files and a single combined skin.css with lots of classes and complexity?

Can I have the physical layout and colors in the design1 pair and common code for classes in skin.css?

So many choices and so little time ---

/DaveS

 

 

/DaveS


/Dave S
 
New Post
4/11/2007 9:16 AM
 

DavidWSnow wrote

I ended up doing two things:

  • I edited the "static" to "dynamic" in the FCK parts of web.config to that FCK always used my skin's css definitions
  • I edited my skin.css so that I had my default font definitions in one pages for "body, normal, normalbold ....."

This worked for most problems.

Are you saying this works for you? It has no effect when I try it. The FCK iframe keeps the "browser default" colors and font, no matter how often I clear out my cache.

And the problem is, I have no other choices left. I must do it in this way, because we have multiple portals on the same site, with different fonts and colors, so I can't just put the changes in FCK's config files - that would affect all portals in the same way.

So do you have an example site? A URL I could visit and see how it works?

 


Groetjes, Pim
 
New Post
4/12/2007 12:32 PM
 

Works fine for me.  The words "browser default"  in your reply bother me.  IF you have overriddin the css files by setting your own defaults in the browser then they would logically be the ones that you should see. Remember there are places in your browser that you may be able to  override the css in the web site.

my web site is www.AgingSafely.com  feel free to look at it and download my skin.css if you wish. Currently I can't let you edit there, but if need be I sould package up the skin files and mail them to you. There would be on problem however I use a different menu system from DNN360.

/DaveS


/Dave S
 
New Post
4/12/2007 4:22 PM
 

No, I don't have a user stylesheet, nor do I have IE set to ignore the fonts on webpages. But whatever font I have set as the default font (in my case, Verdana) is the font shown in the FCK iframe. As far as IE is concenred, FCK simply does not use the site's CSS files.
(Just to clarify, the CSS does show correctly outside of FCK's iframe. And, I can use FCK's custom styles to apply colors and whatever to the text in the editor. This works. It's just the normal text that looks "default".)

I'll take a look at your site and see if I can see what you're doing differently.

 


Groetjes, Pim
 
New Post
4/15/2007 5:38 PM
 

Just wanted to pop in and say thanks to David for the very helpful post.

Also, Velox, re your problem with your CSS, the property I had to change in my web.config was in the dotnetnuke -> htmlEditor -> providers section, in the 'add name="FckHtmlEditorProvider"' entry, the CSSDefaultMode attribute (from static to dynamic). The first one I tried was the SylesDefaultMode, but it did not do what I was hoping. Basically it filled the Style dropdown with the list of styles from my combined CSS sheets... very unhelpful. The CSSDefaultMode="dynamic" uses the CSS sheets from the page on the edit area.

Now the only issue I'm having is that my admin/editor skin has different CSS from my view page, and so the styles aren't *quite* there yet.

I suppose if you set the CSSDefaultMode to dynamic, you can probably remove the StaticCSSFile attribute too, shrug.

Hope that helps :)

Now if someone can tell me why (when pasting from notepad), FCKeditor deems it necessary to insert a <font face='arial'> tag around my block (and how I can stop it from doing so), it would be much appreciated :P

Cheers

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorChanging default font in FCKeditorChanging default font in FCKeditor


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