Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ckeditor / Users
#1
I have a problem. I would like to define in the users xml, different ckeditor setups. I have only managed to change this globally so far in gsconfig.php.

Any help is greatly appreciated!
Reply
#2
Hi, hannesr,

I can't help, this is getSimple, not GetComplex ;=)

there is no way to do this, this is no feature of GetSimple
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
You could make a plugin to define the config depending on the user, you would have to make sure it is not already defined in the gsconfig.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
Yes, I know... I just thought it might be a way since you can set html true or false, maybe there also was a way for more options here. But if not, I think I'll go the plugin route.

(2013-03-26, 04:54:01)Connie Wrote: Hi, hannesr,

I can't help, this is getSimple, not GetComplex ;=)

there is no way to do this, this is no feature of GetSimple

Thanks for the tip, I'll try that... Not exactly sure where to begin on this one, but I'll figure it out Smile. For future reference I'll share here how I did, if I'm successful.

(2013-03-26, 05:16:37)shawn_a Wrote: You could make a plugin to define the config depending on the user, you would have to make sure it is not already defined in the gsconfig.
Reply
#5
Not really as we do not officially support multi users in core.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
You can skip the plugin method and use my component hook plugin.

Then use a hook that is after the user file is loaded, probably "common"

Then check the users config
PHP Code:
// psuedo code
function getUserCke(){
GLOBAL 
$datau;
if (
$datau->cketool)
if (!
defined('GSEDITORTOOL'define('GSEDITORTOOL',$datau>cketool);
// repeat for GSEDITORLANG, GSEDITOROPTIONS etc

NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
(2013-03-26, 07:24:19)shawn_a Wrote: You can skip the plugin method and use my component hook plugin.

Then use a hook that is after the user file is loaded, probably "common"

Then check the users config
PHP Code:
// psuedo code
function getUserCke(){
GLOBAL 
$datau;
if (
$datau->cketool)
if (!
defined('GSEDITORTOOL'define('GSEDITORTOOL',$datau>cketool);
// repeat for GSEDITORLANG, GSEDITOROPTIONS etc


Great! Thanks!
Reply
#8
(2013-03-26, 07:24:19)shawn_a Wrote: You can skip the plugin method and use my component hook plugin.

Then use a hook that is after the user file is loaded, probably "common"

Then check the users config
PHP Code:
// psuedo code
function getUserCke(){
GLOBAL 
$datau;
if (
$datau->cketool)
if (!
defined('GSEDITORTOOL'define('GSEDITORTOOL',$datau>cketool);
// repeat for GSEDITORLANG, GSEDITOROPTIONS etc


Worked beautifully, thanks!
Reply
#9
I made a small plugin for this.
Reply




Users browsing this thread: 1 Guest(s)