wysiwyg_custom toolbar buttons - admin user
Hi. I'd like to create a wysiwyg_custom.php that will allow one set of TinyMCE toolbar buttons for the admin user, and another set for all other user levels.
If user is 'admin', they will see these toolbar icons:
toolbar1: "formatselect fontsizeselect | bold italic underline | bullist numlist | charmap | removeformat fullscreen",
toolbar2: "forecolor backcolor | link | table | pastetext paste | code",
All other user levels will see these:
toolbar1: "bold italic | bullist numlist | removeformat fullscreen",
If anyone can tell me how to accomplish this, it would make my world a much better place! :)
Jeff, thank you very much for your response!
Here's the final code that works for me with version 3,07:
1) Near top, just before the HTML:
$CMS_USER = getCurrentUserFromCMS();
$toolbar1 ="formatselect fontsizeselect | bold italic underline | bullist numlist | charmap | removeformat fullscreen";
$toolbar2= "link | table | pastetext paste | code";
$toolbar1 ="bold italic | bullist numlist | link | removeformat fullscreen";
2) In the HTML portion, I commented out the existing toolbar lines and added this:
I often need to edit the underlying code of something a user has copied/pasted in a wysiwyg editor, yet I don't want to display the "code" button or most of the other toolbar icons. Thanks again for your help on this!