Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deleting items from FCKEditor toolbar

Posted on 2006-10-20
6
Medium Priority
?
335 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 54

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 54

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Accepted Solution

by:
Ryan Chong earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

886 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