mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
added richtext customfield
This commit is contained in:
parent
8f5f334762
commit
d20c38b3d0
@ -58,6 +58,7 @@ class customfields_widget
|
||||
'url' => 'Url',
|
||||
'url-email'=> 'EMail',
|
||||
'url-phone'=> 'Phone number',
|
||||
'htmlarea' => 'Formatted Text (HTML)',
|
||||
'link-entry' => 'Select entry', // should be last type, as the individual apps get added behind
|
||||
);
|
||||
|
||||
@ -435,6 +436,12 @@ class customfields_widget
|
||||
'size' => $field['len']
|
||||
));
|
||||
break;
|
||||
case 'htmlarea': // defaults: len: width=100%,mode=simple,tooldbar=false; rows: 5
|
||||
list($width,$mode,$toolbar) = explode(',',$field['len']);
|
||||
$input =& etemplate::empty_cell($field['type'],$this->prefix.$lname,array(
|
||||
'size' => $mode.','.(($field['rows'] ? $field['rows'] : 5)*16).'px,'.$width.','.($toolbar=='true'?'true':'false'),
|
||||
));
|
||||
break;
|
||||
// other etemplate types, which are used just as is
|
||||
case 'checkbox' :
|
||||
$input =& etemplate::empty_cell($field['type'],$this->prefix.$lname);
|
||||
|
Loading…
Reference in New Issue
Block a user