Solved

Deleting items from FCKEditor toolbar

Posted on 2006-10-20
6
318 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
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…

705 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

18 Experts available now in Live!

Get 1:1 Help Now