ability to specify plugins for htmlarea

This commit is contained in:
Ralf Becker 2004-08-21 08:04:23 +00:00
parent 72f2561223
commit c7e6cb74fa
3 changed files with 10 additions and 4 deletions

View File

@ -448,7 +448,9 @@ implement only a subset of XUL. Here are the main differences:</p>
<td>
<b>a multiline input-field for formatted (HTML) text</b><br>
In the html-UI this is rendered as &lt;textarea ...> and the HTMLarea javascript editor is used.<p>
<b>Options</b> inline styles for the text/htmlarea.
<b>Options</b> has 2 comma-separated fields:<br>
xml: <b>style</b>: inline styles for the text/htmlarea<br>
xml: <b>plugins</b>: plugins (comma-separated) to load
</td>
</tr>
<tr>

View File

@ -646,10 +646,11 @@
);
}
break;
case 'htmlarea': // Multiline formatted Text Input, size: [inline styles for the widget]
case 'htmlarea': // Multiline formatted Text Input, size: [inline styles for the widget][,plugins (comma-sep.)]
if (!$readonly)
{
$html .= $this->html->htmlarea($form_name,$value,$cell_options);
list($styles,$plugins) = explode(',',$cell_options,2);
$html .= $this->html->htmlarea($form_name,$value,$styles,'',$plugins);
$GLOBALS['phpgw_info']['etemplate']['to_process'][$form_name] = array(
'type' => $cell['type'],
'needed' => $cell['needed'],

View File

@ -87,7 +87,10 @@
'button' => array(
'.name' => 'button',
'size' => 'image,ro_image'
)
),
'htmlarea' => array(
'size' => 'style,plugins',
),
);
$this->xul2widget = array(
'menulist' => 'select',