$wwwpath = ""; require_once("$abspath/session.php"); require_once("$abspath/system/design.php"); require_once("$abspath/system/functions.php"); $abspath = getcwd()."/$abspath"; $smiley_path_www = "$wwwpath/".getThemeConstant("smileys_path")."/"; $smiley_path_abs = $abspath.getThemeConstant("smileys_path")."/"; //FCKConfig.StylesXmlPath = '../fckstyles.xml' ; ?> FCKConfig.EditorAreaCSS = '<?php echo "{$wwwpath}/" . getThemeConstant("fck_css_path"); ?> '; FCKConfig.ToolbarSets["Default"] = [ ['Source','Preview','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Link','Unlink'], ['Image','Table','Rule','Smiley','SpecialChar','UniversalKey'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], '/', ['Style','FontFormat','FontName','FontSize'],
global $wwwpath, $abspath; $oFCKeditor = new FCKeditor($args['varname']) ; $oFCKeditor->BasePath = "$wwwpath/3dparty/FCKeditor/"; $oFCKeditor->Value = stripslashes($args['value']); list($toolbar, $height) = explode(":", $args['extra']); if (empty($height)) $oFCKeditor->Height = 500; else $oFCKeditor->Height = $height; if (empty($toolbar)) $oFCKeditor->ToolbarSet = "Default"; else $oFCKeditor->ToolbarSet = $toolbar; $oFCKeditor->Config = array( "AutoDetectLanguage" => false, "DefaultLanguage" => ($_SESSION['murrix']['language'] == "swe" ? "sv" : "en"), "SkinPath" => $oFCKeditor->BasePath."editor/skins/silver/", "CustomConfigurationsPath" => "$wwwpath/".getThemeConstant("fck_config_path") ); ?> <div style="background-color: white;"> <?php echo $oFCKeditor->Create(); ?> </div>