make both (htmlarea / tinymce) pluging arguments styles working in etemplate

This commit is contained in:
Cornelius Weiß 2005-10-13 15:13:58 +00:00
parent e21c498f4c
commit c5d434332c

View File

@ -885,12 +885,14 @@
if (!$styles) $styles = 'width: 100%; min-width: 500px; height: 300px;'; // default HTMLarea style in html-class
if (!$readonly)
{
// $html .= $this->html->htmlarea($form_name,$value,$styles,'',$plugins,'',true);
$init = 'theme : "advanced",
theme_advanced_toolbar_location : "top",
plugins : "fullscreen",
theme_advanced_buttons3_add : "fullscreen"';
$html .= $this->html->tinymce($form_name,$value,$styles,$init);
if(strpos($plugins,':') === false)
{
$html .= $this->html->htmlarea($form_name,$value,$styles,'',$plugins,'',true);
}
else
{
$html .= $this->html->tinymce($form_name,$value,$styles,$plugins);
}
$GLOBALS['phpgw_info']['etemplate']['to_process'][$form_name] = array(
'type' => $cell['type'],