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/6/2007 10:53 AM
 

OK, I LOVE FCKeditor and I place it in all my installations. However, I am exasperated in trying to figure out how to change the default font. I have cruised dozens of forum posts and never find an answer that works or that is clearly explained.

When an instance of FCK comes up in my portal I _always_ want the font to be Tahoma, very small (size 2).

How do I do this, very specifically. If you are suggesting I change files, exactly where are they?

Thanks for your help in advance.

Will in Maine

 

 

 
New Post
4/6/2007 1:56 PM
 

I had troubles with FCK editor showing different fonts than the skin did. After a lot of messing around I figured out that DNN jams you into the .Normal class to start with in the Text/HTML module, while FCK thinks that the definitions in "body" are the root of the world. 

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. However, I still had a few problem pages. Somehow they had a lot of <div class="xxxx"></div> for and not <p></p> for multiple end of line.  Ther also seemed to be some untended font definations. I cut  the entire page into Visual Web Developer, leaving giant DNN/FCKedit span. Then I did a mas conversion of these tags. Then I pasted it back inside of the remaining span.

This made the whole FCKedit world look better for me now! 

At the same time I restructured my css file so that:

  • The physical layout was in one section, all by itself. Easy to visualize and adjust.
  • I set the default style and size in the "body, normal ..." section above and made all other size references as a percentage or "em". Now I scale the page easially. This did mean that I had to override several of DNN's "default.css" definations which seemed to be a strange mix of pt, px, em and %.
  • Each color used was only defined one or two times (color & background-color), and each class or div that uses that color was listed there. With this I could tweak the color easily to make new skin derivatives. I try to control the number of total colors in the skin
  • I did finally keep the menu colors in separate, because I was messing with different menu systems, but they too are formated as above.
  • I have a section for the various editing classes that are used on my site (.QuoteLeft, ImageRight etc). Now I can cut & pasted them from skin to skin as required.
  • Had Visual Web Developer validate and format my skin.css. It is amazing how different tools and browsers deal with an exta "}" or other error. Then checked it with W3C's tools.

Hope This help with your FCKedit issues.  They are likely to be css skin issues in part.

/DaveS

 

 

 


/Dave S
 
New Post
4/6/2007 6:20 PM
 

Hi Dave,

Wow, thanks for your lengthy and thoughtful reply. I wish I could say I knew what you were talking about and I could figure all that out on my installations - I will give it a shot.

It would seem that if you are doing such complex workarounds, the program needs to incorporate this easily into FCK. Like a section that says "What do you want the default font and size to be for this entire portal?" and it just does it for you.

Another big problem with FCK is that there is no end user's guide. I mean for a client, 90% of what they need to do is add TEXT/HTML modules and then use FCK to add content. They inevitably try, have to deal with the default font each time, and then have no guidance about how to create a photo with a caption, for example. It makes the entire installation you create for them seem more complicated and less professional.

Hopefully these issues will be dealt with in future. Again, I think FCK is great in general and I always replace FTB with it for my DNN installations. I do not understand why it is not the default editor.

Thanks again,

Will Sugg

 
New Post
4/6/2007 9:21 PM
 

Yes, there is a guide being built and there is an offering from someone to be in charge of the documentation. I just returned from vacations and want to establish contact again with the possible new team. So, there will be a new guide soon.

About the styles, a good skin must include the default font inside the most used tags and also inside the NORMAL related classes too.

FCKeditor manages styles by using two resources:

1) a .XML file that includes a list of attributes to list in the styles toolbar. This is just a xml file with a specific format described here: http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Styles

The provider has included tree ways of managing this xml info:

a) Static: The provider will use the standard .xml file located at: 
Providers\HtmlEditorProviders\FckhtmlEditorProvider\FCKeditor\fckstyles.xml

b) Dynamic: Each DNN page loads a set of style pages (Default, skin, portal, module, etc). By setting this option to dynamic, the provider will instruct the editor to use those styles. There is a possible REGEX filter to clean the styles list

c) Static: You can tell the provider to use a custom .xml file (Must follow the rules explained in the previous link). So you can include the styles you want and customize your own styles

2) As a second resource (optional bu somehow necessary), all the styles created inside the XML file that refer to a CLASS property must exist in the loaded styles at both sides: Normal page view and when editing. So those styles can be included at any of the already loaded styles by the page itself. Those styles must also be loaded for the editor and to be applied when editing. The provider includes tree ways to manage the editor loaded styles

a) Static: The provider will use the .css file located at:
\Providers\HtmlEditorProviders\FckhtmlEditorProvider\FCKeditor\editor\css\fck_editorarea.css

b) Dynamic: The provider will include all the DNN styles when editing

c) Static: You can define a custom .css file to be used

FINAL COMMENTS:

If dynamic styles are chosen, the default font will be the default font applied to BODY in your skin or replaced in your portal.css (Portal settings) . The static mode tels the editor to use the already explained default files, so you can define your default font there

So, it is really very easy to configure how styles are managed.

Hope it helps

 


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
4/8/2007 8:50 AM
 

minor correction: c) is called URL in the surface.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
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