Hi, in admin/settings/tinymce I have this 3 profiles:

=> admin - it's me
-authenticated user
visibility/Show on only the listed pages: admin/* node/add/*

=> user - registreted user
-authenticated user
visibility/Show on only the listed pages: comment/*

=> guest - anonymous
-anonymous user
visibility/Show on only the listed pages: comment/*

But I cant understand, why this settings is not well....

Do anyone have an idea, where must I change that one?

Thank you

Comments

Borek-1’s picture

I suggest this:

1) Create "admin" profile for "admin" role (you have to create this role and assign yourself to be its member).

2) Create "user" profile for "authenticated user" role.

3) Create "guest" profile for "anonymous user" role.

But I currently can't verify that this will work.
Borek

larryonov’s picture

Yes, but there is not an "admin role", only auth. and anonym.,

btw i must select one of them (i cant leave it blanc)

Borek-1’s picture

You can add an "admin" role here: admin/access/roles. Then visit your user profile (user/1) and assign yourself to this role.

larryonov’s picture

i created administrator role (and assigned it to me) and created 3 profiles:

*guest (anonym.), user. (auth.)
- visibility:
node/add/forum/*
comment/*
user/*
(and some restrictions in html tags in tinymce)

*admin (administrator)
- visibility:
node/add/page/*
node/add/story/*
(all html tags allowed)

Guest and user profile is working good, in admin Tinymce isnt showing, i dont know where is error at all, maybe i will go mad ;)

Dave Cohen’s picture

I think tinymce shows you the profile for authenticated users, because your admin account is an authenticated user. There seems to be no way to define one profile for privileged users, and another for other authenticated users. In other words, I'm having the same problem.

Am I wrong about this?

geme4472’s picture

I'm running 4.7.x (this won't be a problem in 4.6.x) and yogadex's logic seems to describe precisely what I see happening. Has anyone come up with solutions or seen similar posts here? Thanks.

Dave Cohen’s picture

I modified a query in tinymce_process_textarea, introducing an ORDER BY clause to control the preferred tinymce profile. The code below works for me because I named the admin profile 'advanced' and the other 'basic'. The alphabetical order insures users who can access advanced get it, while other users get basic.

  if (!$profile_name) {
    // order by added by dave, allows admins to use advanced profile, while other users get basic
    $profile_name = db_result(db_query('SELECT s.name FROM {tinymce_settings} s INNER JOIN {tinymce_role} r ON r.name = s.name WHERE r.rid IN (%s) ORDER BY s.name', implode(',', array_keys($user->roles))));
  }

A more proper solution might add a weight to each tinymce profile and sort by that. This was just enough to solve my problem so I stopped here.