Closed (outdated)
Project:
TinyMCE
Version:
5.x-1.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2007 at 20:46 UTC
Updated:
14 Jan 2021 at 19:29 UTC
Jump to comment: Most recent
Comments
Comment #1
husztisanyi commentedI have the same problem.
Could anyone help us?
Comment #2
stevenpatzComment #3
EmpireNM commentedI think the problem you are having is that the TinyMCE module assigns you the lowest profile you have. There was a discussion of that issue here. Hope that helps.
http://drupal.org/node/132198
Comment #4
husztisanyi commentedThank You, but unfortunately none of theese helps:
http://drupal.org/node/132198
http://drupal.org/node/60667
http://drupal.org/node/66014
http://drupal.org/node/132198
In the Tinymce settings, the alphabetical order of profile names is the role weight!
So, if You have three profile name: AAA, BBB, CCC - than, it will works, :
AAA - admin
BBB - authenticated user
CCC - anonymous user
... and won't work:
AAA - anonymous user
BBB - authenticated user
CCC - admin
Comment #5
theorichel commentedHihaaa! Huszitany for president!!!
Thanks very much for solving this mystery
Comment #6
theorichel commentedComment #7
sgdev commentedI had a duplicate of the issue posted here: http://drupal.org/node/250347
Wow, I can't believe the order of the TinyMCE profiles caused the problem. The dependency of those should really be removed by either applying the profiles as they are assigned, or including a weight on the main TinyMCE admin page as to which profile gets applied first.
Comment #8
mjourney2 commentedI don't believe it has to do with the name... Rather, it's the order in which the TinyMCE profiles were created.
Line 108 of the tinymce.module file says:
$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)', implode(',', array_keys($user->roles))));
db_query returns all the results that match a user's profile (e.g. authenticated user and administrator). But it returns those results in the order in which they were entered into the table. db_result then picks the first one.
So the first TinyMCE profile you create should be that for the highest permission user. Any subsequent TinyMCE profiles you build should have fewer privileges.
Comment #9
sgdev commentedI'm not so sure about this. I created them in the order of highest permission user to lowest, and it did not work. It was not until I modified the names to start with "A - ", "B - ", "C - ", etc. that the problem was then fixed.
Comment #10
kikko commentedThanks Huszitany, you find the problem for mee too. (drupal 6.3 - tinymce version 6.x-1.1-dev)
@ mjourney2 - I have try to solve the problem making as you propone, but the problem still remain. Thank, anyway.
Comment #11
nicoloye commented