2013-03-25, 03:26:31
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!
Any help is greatly appreciated!
(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
(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.
// psuedo code
function getUserCke(){
GLOBAL $datau;
if ($datau->cketool)
if (!defined('GSEDITORTOOL') define('GSEDITORTOOL',$datau>cketool);
// repeat for GSEDITORLANG, GSEDITOROPTIONS etc
}
(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
}
(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
}