From a90f81b8f44d6dd984aa291b117118bc32fe3a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Fri, 19 Jan 2007 08:00:09 +0000 Subject: [PATCH] compat for other browsers --- phpgwapi/inc/class.html.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 0418042b0d..b8d76f1da8 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -440,6 +440,10 @@ class html */ function htmlarea($name,$content='',$style='',$base_href='',$plugins='',$custom_toolbar='',$set_width_height_in_config=false) { + if (!$this->htmlarea_availible()) + { + return $this->textarea($name,$content,'style="'.$style.'"'); + } return $this->fckEditor($name, $content, 'extended', array('toolbar_expanded' =>'true'), '400px', '100%', $base_href); } @@ -582,6 +586,10 @@ class html * @return string the necessary html for the textarea */ function fckEditor($_name, $_content='', $_mode, $_options=array('toolbar_expanded' =>'true'), $_height='400px', $_width='100%',$_base_href) { + if (!$this->htmlarea_availible()) + { + return $this->textarea($_name,$_content,'style="width: '.$_width.'; height: '.$_height.';"'); + } include_once(EGW_INCLUDE_ROOT."/phpgwapi/js/fckeditor/fckeditor.php"); $oFCKeditor = new FCKeditor($_name) ;