If you give acces to authenticated users to "custom toolbar", then all others roles have "custom toolbar" too, and NEVER full toolbar.

Just change :

if (user_access('toolbar custom')) { $buttons = $whizzywig_toolbar; }
	else { $buttons = "all"; }

to :

if (user_access('toolbar full')) { $buttons = "all"; }
else { $buttons = $whizzywig_toolbar; } 

Comments

drupalnesia’s picture

Status: Active » Postponed (maintainer needs more info)

Frankly, this concept make me confuse: Authenticated vs User Define Role.

For example, if we have a new "Inventory" role and a User has both "Authenticated" + "Inventory" roles then which role should be act as parent (master) role? Authenticated or Inventory role?

NB: I will check Drupal documentation about this. Any quick answer is welcome.

drupalnesia’s picture

Status: Postponed (maintainer needs more info) » Active

This 6.x-1.0-beta8 contains more toolbar types, including: basic, medium, custom and full. You can define your own buttons for 'basic, medium and custom' types, while admin (user with uid=1) always has 'full toolbar' type.

The logical structure of these button types is:

if (user_access('whizzywig: toolbar - basic')) { $buttons = $whizzywig_toolbar_basic; }
if (user_access('whizzywig: toolbar - medium')) { $buttons = $whizzywig_toolbar_medium; }
if (user_access('whizzywig: toolbar - custom')) { $buttons = $whizzywig_toolbar_custom; }
if (user_access('whizzywig: toolbar - full')) { $buttons = "all"; }

Here is the complete change log:

---------------------------------------------------
6.x-1.0-BETA8:
---------------------------------------------------
Bug fix: Diplay editor when Comment displayed below post
Bug fix: fix order of Toolbar roles (Toolbar Full is higher level then Toolbar Custom)
Bug fix: check user_access on menu permission
Bug fix: double backslash when folder format setting is blank
Bug fix: change default $whizzywig_image_dimension from 480x480 to blank (no limit)
New: provides more toolbar: basic, medium and custom

Please download and try this new version so we can release a stable release asap.

drupalnesia’s picture

Status: Active » Fixed
drupalnesia’s picture

Status: Fixed » Closed (fixed)

6.x-2.0-alpha3:
---------------
Bug fix: toolbar_custom get 'whizzywig_toolbar_medium' instead 'whizzywig_toolbar_custom'
Bug fix: setting to determina which collapsible field set to un-collapsed
Bug fix: disable editor on Whizzywig Settings-page
Bug fix: better compability to PHP 5.3 (not tested)
Bug fix: set toolbar textfield to textarea to accomodate > 128 chars

scott m. sanders’s picture

Does this work in 6.x-2.3? I cannot get the full toolbar for anyone but admin UID 1. I want it for another admin user.