From 91f90bb1afd42a1d5e9f5a9c9e63ba2bfb6deaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gordo=20Romero?= Date: Sun, 23 Dec 2007 07:39:56 +0000 Subject: [PATCH] Enabling new admin/preferences options (fckeditor behavior/spellchecker) to felamimail --- phpgwapi/inc/class.html.inc.php | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index ff896ded92..850af64af9 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -566,25 +566,14 @@ class html */ function fckEditorQuick($_name, $_mode, $_content='', $_height='400px', $_width='100%') { - include_once(EGW_INCLUDE_ROOT."/phpgwapi/js/fckeditor/fckeditor.php"); - - $oFCKeditor = new FCKeditor($_name) ; - $oFCKeditor->BasePath = $GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/fckeditor/' ; - $oFCKeditor->Config['CustomConfigurationsPath'] = $oFCKeditor->BasePath . 'fckeditor.egwconfig.js' ; - $oFCKeditor->Value = $_content; - $oFCKeditor->Width = str_replace('px','',$_width); // FCK adds px if width contains no % - $oFCKeditor->Height = str_replace('px','',$_height); - switch($_mode) { - case 'ascii': - return ""; - break; - case 'simple': - $oFCKeditor->Config['ContextMenu'] = false; - $oFCKeditor->ToolbarSet = 'egw_simple'; - return $oFCKeditor->CreateHTML() ; - break; + if (!$this->htmlarea_availible() || $_mode == 'ascii') + { + return ""; } - + else + { + return $this->fckEditor($_name, $_content, $_mode, array(), $_height='400px', $_width='100%'); + } } /**