mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
added function to check if browser supports htmlarea / richtext editor
This commit is contained in:
parent
c8e57526d2
commit
41f40155aa
@ -149,6 +149,24 @@
|
||||
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
|
||||
@syntax htmlarea( $name,$content='',$style='width:100%; min-width:500px; height:300px;' )
|
||||
|
Loading…
Reference in New Issue
Block a user