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 ForumsFCKeditorFCKeditorcustomize the Richtexteditor control  in DNNcustomize the Richtexteditor control in DNN
Previous
 
Next
New Post
11/3/2008 9:08 AM
 

I have a dnn Richtexteditor control in a user control i want

to hide the bold ,italics underline etc buttons on the editor depending on the users choice

how do i access these toolbar buttons

Please suggest

 

 
New Post
11/3/2008 9:26 AM
 

You can create your own toolbars in fckconfig.js which is found here:

/providers/htmleditorproviders/FCK/Custom/fckconfig.js

You already have:

FCKConfig.ToolbarSets["Default"] = [
 ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
 ['Undo','Redo','-','Find','Replace','-','SelectAll','Removeformat'],
 ['form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
 '/',
 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 ['OrderedList','UnorderedList','-','Outdent','Indent'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],
 ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
 '/',
 ['Style','Fontformat','FontName','FontSize'],
 ['TextColor','BGColor'],
 ['FitWindow','-','About']
] ;

FCKConfig.ToolbarSets["DNNDefault"] = [
 ['Source','Preview','-','Templates'],
 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
 ['Undo','Redo','-','Find','Replace','-','SelectAll','Removeformat'],
 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 ['OrderedList','UnorderedList','-','Outdent','Indent'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],
 ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
 ['Style','Fontformat'],['FontName','FontSize'],
 ['TextColor','BGColor'],
 ['FitWindow','-','About']
] ;

FCKConfig.ToolbarSets["NoGallery"] = [
 ['Source','Preview','-','Templates'],
 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
 ['Undo','Redo','-','Find','Replace','-','SelectAll','Removeformat'],
 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 ['OrderedList','UnorderedList','-','Outdent','Indent'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],
 ['Table','Rule','Smiley','SpecialChar','PageBreak'],
 ['Style','Fontformat'],['FontName','FontSize'],
 ['TextColor','BGColor'],
 ['FitWindow','-','About']
] ;

FCKConfig.ToolbarSets["Basic"] = [
 ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

 

And you can create your own the same way....

 
New Post
11/3/2008 9:32 AM
 

You can set the active toolbar(s) by using the "Show custom editor options" right below the editor.
You can set the toolbars for the instance, the module or the entire portal, and you can even make each toolbar visible or not for specific roles if you want.

Be carefull with upgrades though, cause the fckconfig.js file might get overwritten, so make a backup of your own styles.

 
New Post
11/4/2008 1:56 AM
 

I just want to hide the various buttons on the editor

aand depennding on the users choice display them for the user

eg Bold italics undelined indent font formatting are selected

i just want ot show those buttons not all

 

 
New Post
11/10/2008 9:13 PM
 

You can generate the content of the fckeditor.js dinamically in a .aspx or page handler. Then you must point FCKeditor to use it instead of the default file in the web.config section f the provider.


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorcustomize the Richtexteditor control  in DNNcustomize the Richtexteditor control in DNN


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