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