* richtext custom-fields

This commit is contained in:
Ralf Becker 2011-08-30 19:19:56 +00:00
parent fa6262add6
commit bf4fcb159e

View File

@ -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
);
@ -436,6 +437,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);