".$arrToolbar[$i][1]."\n"; } $toolbarcustom = isset($toolbarcustom) ? htmlspecialchars($toolbarcustom) : "['Bold','Italic','Underline','-','Link','Unlink']"; $autolang = !empty($autolang) ? $autolang : "disabled"; $autoNo = ($autolang=='disabled' || !empty($autolang)) ? 'checked="checked"' : ''; $autoYes = $autolang=='enabled' ? 'checked="checked"' : ''; $xmlstyle = !empty($xmlstyle) ? htmlspecialchars($xmlstyle) : ""; return <<

{$_lang["FCKEditor_settings"]}

{$_lang["fck_editor_autolang_title"]} {$_lang["yes"]}
{$_lang["no"]}   {$_lang["fck_editor_autolang_message"]}
{$_lang["fck_editor_style_title"]}   {$_lang["fck_editor_style_message"]}
{$_lang["fck_editor_toolbar_title"]}   {$_lang["fck_editor_toolbar_message"]}
{$_lang["fck_editor_custom_toolbar"]}   {$_lang["fck_editor_custom_message"]}
FCKEDITOR_HTML; } } // getTinyMCEScript function if (!function_exists('getFCKEditorScript')) { function getFCKEditorScript($elementList,$toolbarset,$toolbarcustom,$width,$height,$language,$frontend,$base_url,$editor_css_path,$use_browser,$autoLang,$editorstyle,$pluginfolder,$webuser) { $autoLang = ($autoLang == 'enabled' ? 'true': 'false'); $editor_css_path = !empty($editor_css_path) ? $editor_css_path : $base_url."assets/plugins/".$pluginfolder."/editor/css/fck_editorarea.css"; $toolbarcustom = !empty($toolbarcustom) ? "var FCKCustomToolbarSet = [ ".$toolbarcustom." ];" : ""; $width = (!empty($width)) ? str_replace("px","",$width) : "100%"; $height = (!empty($height)) ? str_replace("px","",$height) : "400"; if($frontend=='false' || ($frontend=='true' && $webuser)){ if($use_browser==1){ $allowrb = true; } } // build fck instances $elementList = split(",",$elementList); foreach($elementList as $fckInstance) { $fckInstanceObj = "oFCK" . $fckInstance; $fckInstances .= "\n"; } $browserConfig .= $allowrb ? " var FCKImageBrowserURL = '{$base_url}manager/media/browser/mcpuk/browser.html?Type=images&Connector={$base_url}manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath={$base_url}&editor=fckeditor2';\n" : ""; $browserConfig .= $allowrb ? " var FCKLinkBrowserURL = '{$base_url}manager/media/browser/mcpuk/browser.html?Connector={$base_url}manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath={$base_url}&editor=fckeditor2';\n" : ""; $browserConfig .= $allowrb ? " var FCKFlashBrowserURL = '{$base_url}manager/media/browser/mcpuk/browser.html?Type=flash&Connector={$base_url}manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath={$base_url}&editor=fckeditor2';\n" : ""; $script = << {$fckInstances} FCK_SCRIPT; return $script; } } ?>