Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Deleting items from FCKEditor toolbar

Posted on 2006-10-20
6
Medium Priority
?
331 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 53

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 53

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
URL rewriting in AWS CloudFront

A quick how-to guide to implement with a Lambda function!

 

Author Comment

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

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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

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

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…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

704 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