Active
Project:
Whizzywig - A complete WYSIWYG Editor
Version:
6.x-2.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2011 at 18:04 UTC
Updated:
4 Jan 2013 at 14:54 UTC
Hello,
Is there a known issue regarding the Whizzywig on drupal 6.22 with users? I have a simple website with two or three users. As a Admin I can add images etc, but logging in as a user, they cannot add images.
How to fix this?
Comments
Comment #1
iserdaroz commentedHello, i'm suffering same problem. I'm using Drupal core 6.25 and Whizzywig 6.x-2.3. There is no problem about insert links or images for my account (uid=1). But other three users' "link" and "image" buttons doesn't work . Even we are member of same admin group.
My fast (and dirty :-) ) solution is change if clause condition from file
/sites/all/modules/whizzywig/whizzywig.module.
Original condition (Bold Line)
if ($user->uid == 1) {
$whizzywig_toolbar_admin = variable_get('whizzywig_toolbar_admin', 0);
if ($whizzywig_toolbar_admin == 0) {
$buttons = "all"; }
elseif ($whizzywig_toolbar_admin == 1) {
$buttons = $whizzywig_toolbar_basic; }
elseif ($whizzywig_toolbar_admin == 2) {
$buttons = $whizzywig_toolbar_medium; }
elseif ($whizzywig_toolbar_admin == 3) {
$buttons = $whizzywig_toolbar_custom; }
}
Changed condition (Bold Line)
if ($user->uid == 1) || ($user->uid == 7) || ($user->uid == 8) || ($user->uid == 9) ){
$whizzywig_toolbar_admin = variable_get('whizzywig_toolbar_admin', 0);
if ($whizzywig_toolbar_admin == 0) {
$buttons = "all"; }
elseif ($whizzywig_toolbar_admin == 1) {
$buttons = $whizzywig_toolbar_basic; }
elseif ($whizzywig_toolbar_admin == 2) {
$buttons = $whizzywig_toolbar_medium; }
elseif ($whizzywig_toolbar_admin == 3) {
$buttons = $whizzywig_toolbar_custom; }
}
Note: other users' uids might be find from "user manager -> users -> edit user" link