You are here:   Articles
Register   |  Login

DotNetNuke Articles

Minimize
12

The FCK Editor has a few drop down boxes to let you set the formatting of text. Those drop down boxes are:

  • Style
  • Format
  • Font
  • Size

Style and Format are fine, since they are CSS clases or HTML tags and can be controlled by CSS style sheets.

Font and Size are not fine, since they cause inline, hardcoded formatting of the text. The problem with this is that if you want to change the color and font theme of your website, you will have to change all this text individually. Therefore, you should not allow users to specify specific fonts or font sizes.

Rather, have them use the Style and Format drop down lists to select the relative formatting.

To prevent users from using the Font and Size drop down lists, you can remove them from the editor. In

File: Providers\HtmlEditorProviders\Fck\Custom\fckconfig.js (or somewhere)

Comment out all occurrances, of the FontName and FontSize, like this

Also see DotNetNuke-FCK-Editor-160-in-HTML-Text and remove the   blank filler at the same time.

// ['FontName','FontSize']

By Andrew Weitzen, Bronze Inc.(c) 2010

Bronze is the publisher of several online Internet journals including: InternetHandholding.com, DomainNames.gs, DotNetNuke.bz, Programmer.bz, Software.vg, WebHosting.vg

Posted in: Editor

Post Rating

Comments

Anonymous User
# Anonymous User
Friday, February 19, 2010 4:41 PM
How to Upgrade DotNetNuke Installation
Ruben
# Ruben
Wednesday, April 14, 2010 8:03 AM
Can you disable buttons for one portal only?
Internet Handholding
# Internet Handholding
Wednesday, April 14, 2010 11:45 AM
To disable buttons for one portal, you would have to write some Javascript code.

You can retrieve the domain name with: document.domain

Then you can check the domain name and disable buttons. Something like this.

var domain = document.domain;
if (domain == "mydomain.com")
{

// Put button disabling code here

}

Post Comment

Only registered users may post comments.

DotNetNuke

Minimize



Recommend DotNetNuke.bz

Minimize

Share/Bookmark Bookmark and Share