forked from extern/egroupware
complete transition to fck
changed etemplate apps: resources, wiki, projectmanager, infolog, news_admin infolog now has a fck w.o. toolbar by defaut. This helps for mails from mail2infolog compability function htmlarea in class.html now points to fck deactivated old tiny code in class.html
This commit is contained in:
parent
9e2b2b780f
commit
7478fa159f
@ -460,9 +460,12 @@ 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 <textarea ...> and the HTMLarea javascript editor is used.<p>
|
||||
<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
|
||||
<b>Options</b> has 5 comma-separated fields:<br />
|
||||
xml: <b>mode</b>: {ascii|simple|extended|advanced}<br />
|
||||
xml: <b>height</b>: height of htmlarea<br />
|
||||
xml: <b>width</b>: width of htmlarea<br />
|
||||
xml: <b>toolbar</b>: {true|false} show toolbar<br />
|
||||
xml: <b>base_href</b>: if passed activates the browser for image at absolute path passed
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -997,11 +997,16 @@
|
||||
}
|
||||
break;
|
||||
case 'htmlarea': // Multiline formatted Text Input, size: [inline styles for the widget][,plugins (comma-sep.)]
|
||||
list($styles,$plugins) = explode(',',$cell_options,2);
|
||||
if (!$styles) $styles = 'width: 100%; min-width: 500px; height: 300px;'; // default HTMLarea style in html-class
|
||||
list($mode,$height,$width,$toolbar,$baseref) = explode(',',$cell_options);
|
||||
if (!$readonly)
|
||||
{
|
||||
$html .= $this->html->tinymce($form_name,$value,$styles,$plugins);
|
||||
$mode = $mode ? $mode : 'simple';
|
||||
$height = $height ? $height : '400px';
|
||||
$width = $width ? $width : '100%';
|
||||
$fckoptions = array(
|
||||
'toolbar_expanded' => $toolbar,
|
||||
);
|
||||
$html .= $this->html->fckEditor($form_name,$value,$mode,$fckoptions,$height,$width,$baseref);
|
||||
|
||||
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = array(
|
||||
'type' => $cell['type'],
|
||||
@ -1010,7 +1015,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$html .= $this->html->div($this->html->activate_links($value),'style="overflow: auto; border: thin inset black;'.$styles.'"');
|
||||
$html .= $this->html->div($this->html->activate_links($value),'style="overflow: auto; border: thin inset black; width='. $width. '; height='. $height. '"');
|
||||
}
|
||||
break;
|
||||
case 'checkbox':
|
||||
|
Loading…
Reference in New Issue
Block a user