BasePath = PHPWCMS_URL.'include/inc_ext/fckeditor/';
$oFCKeditor->Config['CustomConfigurationsPath'] = PHPWCMS_URL.'include/inc_ext/fckeditor/fckeditor_config.js.php' ;
$oFCKeditor->Value = $wysiwyg_editor['value'];
$oFCKeditor->Width = str_replace('px', '', $wysiwyg_editor['width']);
$oFCKeditor->Height = str_replace('px', '', $wysiwyg_editor['height']);
$oFCKeditor->ToolbarSet = $_SESSION['WYSIWYG_TEMPLATE'];
$oFCKeditor->Create();
} elseif($wysiwyg_editor['editor'] == 1) {
$BE['HEADER']['ckeditor.js'] = getJavaScriptSourceLink('include/inc_ext/ckeditor/ckeditor.js');
$BE['HEADER']['ckeditor.styles.default.js'] = getJavaScriptSourceLink(TEMPLATE_PATH.'config/ckeditor/ckeditor.styles.default.js');
$wysiwyg_editor['template'] = 'Basic';
switch(strtolower($_SESSION['WYSIWYG_TEMPLATE'])) {
case 'default':
case 'full':
$wysiwyg_editor['template'] = 'Full';
break;
}
// simple textarea - no WYSIWYG editor
echo '';
echo LF;
echo ' ';
} else {
// simple textarea - no WYSIWYG editor
echo '';
}
?>