From c5d434332c449361ad25174ad97f2a5742f21a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Thu, 13 Oct 2005 15:13:58 +0000 Subject: [PATCH] make both (htmlarea / tinymce) pluging arguments styles working in etemplate --- etemplate/inc/class.uietemplate.inc.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index b5576f52e3..7c8746f81a 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -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'],