Solved

Deleting items from FCKEditor toolbar

Posted on 2006-10-20
6
325 Views
Last Modified: 2013-12-16
I am using CFKeditor on a coldfusion site and would like to delete certain actions from the toolbar such as the form building items. Can someone plaeas tell me how this is done. I understand that I can have customized toolbars for every instance where I display the editor but I cannot figure out how this is done.

Thanks.
0
Comment
Question by:tubize
  • 3
  • 3
6 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 17775664
try create a customized toolbar, like:

in fckeditor/fckconfig.js, try add:

FCKConfig.ToolbarSets["Style1"] = [
      ['Source','-','NewPage','Preview'],
      ['Cut','Copy','Paste','PasteText','PasteWord'],
      ['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','UniversalKey'],
      '/',
      ['Style','FontFormat','FontName','FontSize'],
      ['TextColor','BGColor'],
      ['FitWindow','-','About']
] ;


then in your coldfusion, try set ToolbarSet to "Style1"
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 17775727
0
 

Author Comment

by:tubize
ID: 17776505
I am using cfform and I call up fckeditor like this:

<cfformitem type="html">
<cfmodule
      template="/fckeditor/fckeditor.cfm"
      instanceName="content"
      value="#get_content.content#"
      width="100%"
      height="500"
>
</cfformitem>

Where do I place the cfset?

Thanks
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:tubize
ID: 17776624
That did it. Thanks.
0
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 125 total points
ID: 17776649
I'm not programming in coldfusion for many years now, you may try..


<cfmodule
     template="/fckeditor/fckeditor.cfm"
     instanceName="content"
     toolbarSet = ""
     value="#get_content.content#"
     width="100%"
     height="500"
>

or as refer to the url posted above:

<cfmodule name="path/to/cfc/fckeditor"
        instanceName="myEditor"
        toolbarSet="yourCustomizedToolBarName"
        width="100%"
        height="500"
        value="#get_content.content#"
>
0
 

Author Comment

by:tubize
ID: 17776708
It did it. Thank you very much.

John
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now