Index: core/units/helpers/fck_helper.php =================================================================== --- core/units/helpers/fck_helper.php +++ core/units/helpers/fck_helper.php @@ -474,14 +474,21 @@ $toolbar = $this->Application->isDebugMode() ? 'DebugMode' : 'Default'; } - $editor->config = Array ( + if ( isset($tag_params['styleset_name']) && $tag_params['styleset_name'] ) { + $styleset_name = $tag_params['styleset_name']; + } + else { + $styleset_name = 'portal'; + } + + $editor->config = array( 'toolbar' => $toolbar, 'baseHref' => $this->Application->BaseURL() . trim(EDITOR_PATH, '/') . '/', 'customConfig' => $this->getJavaScriptConfig(), - 'stylesSet' => 'portal:' . $styles_js, + 'stylesSet' => $styleset_name . ':' . $styles_js, 'contentsCss' => $styles_css, - 'Admin' => 1, // for custom file browser to work - 'K4' => 1, // for custom file browser to work + 'Admin' => 1, // For custom file browser to work. + 'K4' => 1, // For custom file browser to work. 'language' => $this->getLanguage(), );