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 ForumsFCKeditorFCKeditorHow to Limit FCKeditor 2.4.1 FontsHow to Limit FCKeditor 2.4.1 Fonts
Previous
 
Next
New Post
5/1/2007 9:01 PM
 

Using DotNetNuke 4.5.1 w/ FCKeditor 2.4.1, I woud like to restrict the Fonts allowed, to make available only Verdana (and have Verdana be the default, of course). Would someone please suggest how I might do this? Thank you.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
5/1/2007 9:37 PM
 

Two options:

1) Change the default settings by editing the file: fckconfig.js located at:

Providers\HtmlEditorProviders\Fck\Custom

The font list could be changed by changing the variable FCKConfig.FontNames in that file

2) Use the "Custom editor options" dialog (Need to be admin or host). This will enable you to set a font list per portal, module and editor instance

Note: FCKeditor uses your styles to determine default font. If you want a specific default font, you can change it at

Providers\HtmlEditorProviders\Fck\FCKeditor\editor\css\fck_editorarea.css

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
5/2/2007 8:07 AM
 

Thank you, Locopon. Your provided very detailed instructions, bringing me right to a solution.

However, I find that your option #1 below is not changing the FCKeditor Font list. After I make the change you recommend, leaving only the font 'Verdana" in the FCKConfig.FontNames setting, the Font list still shows all the original fonts (Arial, Comic Sans, Courier New, Tahoma, Times New Roman, Verdana). I even cleared my IE7 cache,  restarted the application, and rebooted the server, but still - no change to the Font list.

And because you provided clear instructions for a resolution, I also found the fckconfig.js located in:

\Providers\HtmlEditorProviders\FckhtmlEditorProvider\FCKeditor

.. and changed the FCKConfig.FontNames setting, (just incase) removing all but the Verdana font, and still all the fonts show in the Font dropdown list when using the editor.

I also made your option #2 'default font' change by modifying the body { } selector in the file:

Providers\HtmlEditorProviders\Fck\FCKeditor\editor\css\fck_editorarea.css

from:

body, td
{
 font-family: Arial, Verdana, Sans-Serif;
 font-size: 12px;
}

to:

body, td
{
 font-family: Verdana, Sans-Serif;
 font-size: 12px;
}

... just incase this #2 option was needed, too. Still, all the default fonts are showing in the Font dropdown list.

Am I missing a step somewhere?


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
5/2/2007 10:53 AM
 

The changes must be made to the fckconfig.js located at the

Providers\HtmlEditorProviders\Fck\Custom

folder. The other one is the original left there because we want to left the original FCKeditor untouched.

Tested right now on my installation and it works. Try clearing your cache (Also remember that you must close your browser after clearing the cache). Then try again.

Be sure your web.config i pointing to the

Providers\HtmlEditorProviders\Fck\ and not to the old folder. (Possible upgrade problem)


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
5/2/2007 2:32 PM
 

Thank you for pointing out the definition of the FCKeditor in the web.config file. I am happy to say - you are correct - your suggestion above work perfectly!

I was mistakenly making your suggested changes under:

Providers\HtmlEditorProviders\FckhtmlEditorProvider\Custom (wrong)

instead of:

Providers\HtmlEditorProviders\Fck\Custom (correct!)

Once I saw the Providers\HtmlEditorProviders\Fck\Custom path in the web.config file, I could see my mistaken oversight.

Thanks very much, Locopon, for following up with this thread until I could implement your original instructions correctly.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHow to Limit FCKeditor 2.4.1 FontsHow to Limit FCKeditor 2.4.1 Fonts


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