diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php
index 65bc333720..0b03e9123c 100644
--- a/phpgwapi/inc/class.html.inc.php
+++ b/phpgwapi/inc/class.html.inc.php
@@ -556,24 +556,11 @@ 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->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 "";
}
-
+ return $this->fckEditor($_name, $_content, $_mode, array(), $_height, $_width);
}
/**