added function to check if browser supports htmlarea / richtext editor

This commit is contained in:
Ralf Becker 2004-04-12 13:58:25 +00:00
parent c8e57526d2
commit 41f40155aa

View File

@ -149,6 +149,24 @@
return "<textarea name=\"$name\" $options>".$this->htmlspecialchars($value)."</textarea>\n"; return "<textarea name=\"$name\" $options>".$this->htmlspecialchars($value)."</textarea>\n";
} }
/*!
@function htmlarea_avalible
@author ralfbecker
@abstract Checks if HTMLarea (or an other richtext editor) is availible for the used browser
*/
function htmlarea_availible()
{
switch($this->user_agent)
{
case 'msie':
return $this->ua_version >= 5.5;
case 'mozilla':
return $this->ua_version >= 1.3;
default:
return False;
}
}
/*! /*!
@function htmlarea @function htmlarea
@syntax htmlarea( $name,$content='',$style='width:100%; min-width:500px; height:300px;' ) @syntax htmlarea( $name,$content='',$style='width:100%; min-width:500px; height:300px;' )