ss->assign('prefix', $prefix); $this->ss->assign('field_id', $field_id); $this->ss->assign('value', $value); $this->ss->assign('tabindex', $tabindex); $displayParams = array(); $displayParams['textonly'] = $rich_text ? false : true; $displayParams['maxlength'] = $maxlength; $displayParams['rows'] = $rows; $displayParams['cols'] = $cols; $this->ss->assign('displayParams', $displayParams); if(isset($GLOBALS['current_user'])) { $height = $GLOBALS['current_user']->getPreference('text_editor_height'); $width = $GLOBALS['current_user']->getPreference('text_editor_width'); $height = isset($height) ? $height : '300px'; $width = isset($width) ? $width : '95%'; $this->ss->assign('RICH_TEXT_EDITOR_HEIGHT', $height); $this->ss->assign('RICH_TEXT_EDITOR_WIDTH', $width); } else { $this->ss->assign('RICH_TEXT_EDITOR_HEIGHT', '100px'); $this->ss->assign('RICH_TEXT_EDITOR_WIDTH', '95%'); } return $this->ss->fetch($this->findTemplate('ClassicEditView')); } } ?>