This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

[resolved] Disable certain buttons in TinyMCE

Forum to discuss ExtJS and other JS plugins

[resolved] Disable certain buttons in TinyMCE

by jayz » Fri Dec 11, 2009 12:33 am

I have intalled tinyMCE (using sfFormExtraPlugin), but I want to disable certain buttons like image upload button for users. Is there any way to do that?

~Jayz
jayz
Junior Member
 
Posts: 19
Joined: Fri Oct 23, 2009 6:00 am

Re: Disable certain buttons in TinyMCE

by michalkjp » Fri Dec 11, 2009 1:33 am

$this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE(array(
'width' => 440,
'height' => 350,
'config' => '
theme_advanced_toolbar_location : "top",
theme_advanced_buttons1 : " bold,italic,underline,justifyleft,justifycenter,justifyright ,justifyfull,outdent,indent,bullist,numlist,undo,redo,link,i mage,formatselect ",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
language : "pl",
',
),

Here is a tinymce file list for this config if you want a minimal version

ls -R tiny_mce/
tiny_mce/:
langs plugins themes tiny_mce.js tiny_mce_popup.js utils

tiny_mce/langs:
pl.js

tiny_mce/plugins:

tiny_mce/themes:
advanced

tiny_mce/themes/advanced:
editor_template.js image.htm img js langs link.htm skins

tiny_mce/themes/advanced/img:
colorpicker.jpg icons.gif

tiny_mce/themes/advanced/js:
image.js link.js

tiny_mce/themes/advanced/langs:
pl_dlg.js pl.js

tiny_mce/themes/advanced/skins:
default

tiny_mce/themes/advanced/skins/default:
content.css dialog.css img ui.css

tiny_mce/themes/advanced/skins/default/img:
buttons.png items.gif menu_arrow.gif menu_check.gif progress.gif tabs.gif

tiny_mce/utils:
form_utils.js
michalkjp
Junior Member
 
Posts: 1
Joined: Fri Dec 11, 2009 1:28 am

Re: Disable certain buttons in TinyMCE

by jayz » Tue Dec 15, 2009 5:43 am

thanks a lot, that worked perfectly in one go. here it is: http://www.scikappa.com/school/new
jayz
Junior Member
 
Posts: 19
Joined: Fri Oct 23, 2009 6:00 am