This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » [resolved] Disable certain buttons in TinyMCE
[resolved] Disable certain buttons in TinyMCE [message #89777] Thu, 10 December 2009 23:33 Go to next message
jayz  is currently offline jayz
Messages: 19
Registered: October 2009
Junior Member
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

[Updated on: Wed, 16 December 2009 13:03]

Re: Disable certain buttons in TinyMCE [message #89779 is a reply to message #89777 ] Fri, 11 December 2009 00:33 Go to previous messageGo to next message
michalkjp  is currently offline michalkjp
Messages: 1
Registered: December 2009
Junior Member
$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
Re: Disable certain buttons in TinyMCE [message #90008 is a reply to message #89779 ] Tue, 15 December 2009 04:43 Go to previous message
jayz  is currently offline jayz
Messages: 19
Registered: October 2009
Junior Member
thanks a lot, that worked perfectly in one go. here it is: http://www.scikappa.com/school/new

Previous Topic:ysJQueryRevolutionsPlugin release
Next Topic:what is the best js plugin for symfony 1.4?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software