cms_userprefs table: How to edit all users to use WYSIWYG

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
reviewum

cms_userprefs table: How to edit all users to use WYSIWYG

Post by reviewum »

Hi All,

I've got a lot of newbie users who want to simply upload their pages and images. With the upgrade to the new version and removal of HTML Area I'm wondering how I can edit all the user's settings to be WYSIWYG and whichever editor I select (for example, TinyMCE).

I'm in the cms_userprefs table but can't make heads nor tails of what to set this to. For example, the admin user has four different entries like this:

1 use_wysiwyg 1 NULL
1 use_javasyntax 0 NULL
1 default_cms_language NULL
1 wysiwyg TinyMCE NULL
100rk

Re: cms_userprefs table: How to edit all users to use WYSIWY

Post by 100rk »

reviewum wrote:Hi All,

I've got a lot of newbie users who want to simply upload their pages and images. With the upgrade to the new version and removal of HTML Area I'm wondering how I can edit all the user's settings to be WYSIWYG and whichever editor I select (for example, TinyMCE).

I'm in the cms_userprefs table but can't make heads nor tails of what to set this to. For example, the admin user has four different entries like this:

1 use_wysiwyg 1 NULL
1 use_javasyntax 0 NULL
1 default_cms_language NULL
1 wysiwyg TinyMCE NULL
Just set default OTHER wysiwyg editor in user preferences for user 'admin' (you have to be logged in as admin) :wink: and take a look into database again
Last edited by 100rk on Mon Feb 21, 2005 1:03 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

cms_userprefs table: How to edit all users to use WYSIWYG

Post by Ted »

The SQL statement for something like that would be:

Code: Select all

UPDATE cms_userprefs SET value = 'HTMLArea' where preference = 'wysiwyg';
However, there is (and will continue to be) a separately downloadable HTMLArea that you can install to have the same functionality.
reviewum

cms_userprefs table: How to edit all users to use WYSIWYG

Post by reviewum »

Thanks for the help. Is there a way to "force" all users to use one WYSIWYG editor?

For example, most of my users were using HTMLArea, but now I want to move them, and all the text users over to TinyMCE. So, I need to:

1) Convert all users (ones with and without a WYSIWYG setting) to TinyMCE
2) Have the default (or only) option for editor to be TinyMCE.

Does that make sense?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

cms_userprefs table: How to edit all users to use WYSIWYG

Post by Ted »

There is no way to force a particular WYSIWYG. Never really thought it would be necessary...
100rk

cms_userprefs table: How to edit all users to use WYSIWYG

Post by 100rk »

reviewum wrote:Is there a way to "force" all users to use one WYSIWYG editor?
Yes - just install only one :)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

cms_userprefs table: How to edit all users to use WYSIWYG

Post by Ted »

lol. Good point. Just set the other one as Inactive.
reviewum

cms_userprefs table: How to edit all users to use WYSIWYG

Post by reviewum »

Thanks for the replies.

It isn't as much of an issue as to which WYSIWYG editor, but to use a specific WYSIWYG editor over just the plain text editor.
Locked

Return to “CMSMS Core”