added richtext customfield

This commit is contained in:
Ralf Becker 2011-08-17 16:34:09 +00:00
parent 8f5f334762
commit d20c38b3d0

View File

@ -58,6 +58,7 @@ class customfields_widget
'url' => 'Url', 'url' => 'Url',
'url-email'=> 'EMail', 'url-email'=> 'EMail',
'url-phone'=> 'Phone number', 'url-phone'=> 'Phone number',
'htmlarea' => 'Formatted Text (HTML)',
'link-entry' => 'Select entry', // should be last type, as the individual apps get added behind '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'] 'size' => $field['len']
)); ));
break; 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 // other etemplate types, which are used just as is
case 'checkbox' : case 'checkbox' :
$input =& etemplate::empty_cell($field['type'],$this->prefix.$lname); $input =& etemplate::empty_cell($field['type'],$this->prefix.$lname);