How to remove features from TinyMCE?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Morlan

How to remove features from TinyMCE?

Post by Morlan »

Hello,

I'm getting on great with CMSMS, it's exactly what I was looking for and so easy to use :)

There are various buttons in the TinyMCE WYSIWYG that I want to remove. I don't want users asking me what each button does! Infact, all they need is the Styles dropdown menu and the various table tools (insert cell, etc). Could somebody give me some tips as to how I would go about removing them? I've looked through various files but I don't want to mess with any of the code incase I break something.

Also, in the Styles dropdown box, there are 9 other Styles in there that I didn't add and I want to remove them. They include 'horbar', 'horbaritem', 'verbar' and so on. Is there a file I can go to to remove these Styles? It will only confuse the users.

Many thanks.
100rk

Re: How to remove features from TinyMCE?

Post by 100rk »

Morlan wrote: There are various buttons in the TinyMCE WYSIWYG that I want to remove.
Try read code of TinyMCE module - especially implementation of method 'WYSIWYGGenerateHeader()' - this is place, where all TinyMCE plugins are defined.

Homepage of TinyMCE is here: http://tinymce.moxiecode.com/ - if You want to be TinyMCE expert, You have to read its manual ;-)
Last edited by 100rk on Tue Aug 16, 2005 6:36 am, edited 1 time in total.
Morlan

Re: How to remove features from TinyMCE?

Post by Morlan »

100rk wrote:
Morlan wrote: There are various buttons in the TinyMCE WYSIWYG that I want to remove.
Try read code of TinyMCE module - especially implementation of method 'WYSIWYGGenerateHeader()' - this is place, where all TinyMCE plugins are defined.

Homepage of TinyMCE is here: http://tinymce.moxiecode.com/ - if You want to be TinyMCE expert, You have to read its manual ;-)
OK, Thanks for the tips. I'll get reading :D
Morlan

Re: How to remove features from TinyMCE?

Post by Morlan »

OK, to answer my original question in detail for others.
There are various buttons in the TinyMCE WYSIWYG that I want to remove
Locate TinyMCE.module.php and edit the following section:

Code: Select all

theme : "advanced",
theme_advanced_toolbar_location : "top",
verify_html : "false",
verify_css_classes : "false",
plugins : "table,advlink",
theme_advanced_disable : "strikethrough, image, cleanup, bullist, numlist, outdent, indent, hr, sub, sup",
theme_advanced_buttons1_add : "",
theme_advanced_buttons2_add_before: "cut,copy,paste",
theme_advanced_buttons2_add : "",
theme_advanced_buttons3_add : "tablecontrols,advlink",

Use theme_advanced_disable to disable various buttons.
Use theme_advanced_buttons1_add (1-3) and remove the modules that are not needed.

I haven't figured out how to disable the Paragraph drop down list which is located beside the Styles dropdown. Does anybody know?
Also, in the Styles dropdown box, there are 9 other Styles in there that I didn't add and I want to remove them. They include 'horbar', 'horbaritem', 'verbar' and so on. Is there a file I can go to to remove these Styles? It will only confuse the users.
Locate the file layersmenu-cms.css which is in the PHPLayers module folder. Open the file and delete it's contents (don't delete the file). This will remove these default styles.
liquid
Forum Members
Forum Members
Posts: 59
Joined: Sun Aug 07, 2005 10:20 pm

Re: How to remove features from TinyMCE?

Post by liquid »

You can also use the theme_advanced_buttons(1,2,3) options just to select those buttons to show instead of figuring out what to hide. Then you can rearrange the editor to your heart's content! If you leave a row blank, it's not shown. For example, here's my settings for a client site:

Code: Select all

plugins : "ibrowser,table",
theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,separator,formatselect,separator,bullist,numlist,charmap",
theme_advanced_buttons2 : "cut,copy,paste,separator,undo,redo,separator,link,unlink,anchor,ibrowser,separator,table,tablecontrols,separator,code",
theme_advanced_buttons3 : "",
liquid
Forum Members
Forum Members
Posts: 59
Joined: Sun Aug 07, 2005 10:20 pm

Re: How to remove features from TinyMCE?

Post by liquid »

Morlan wrote: I haven't figured out how to disable the Paragraph drop down list which is located beside the Styles dropdown. Does anybody know?
Hide the formatselect element - that should take care of it.
Morlan

Re: How to remove features from TinyMCE?

Post by Morlan »

Excellent, Thanks liquid.
Locked

Return to “CMSMS Core”