public function formRichtextarea($name, $value = null, $attribs = null, $options = null, $listSep = null)
 {
     $info = $this->_getInfo($name, $value, $attribs);
     extract($info);
     // name, value, attribs, options, listsep, disable
     $fck = new FCKEditor($this->view->escape($name));
     $fck->BasePath = $this->view->base . '/fckeditor/';
     $fck->Value = $value;
     if (isset($attribs['width'])) {
         $fck->Width = $attribs['width'];
     } else {
         $fck->Width = '890';
     }
     $fck->Height = '600';
     $fck->Config['CustomConfigurationsPath'] = '../../javascript/fck_custom_config.js';
     $fck->ToolbarSet = 'MonkeysToolbar';
     return $fck->CreateHtml();
 }
Beispiel #2
0
 function render($blockContent = NULL)
 {
     $editor = new FCKEditor($this->name());
     $editor->Width = $this->width;
     $editor->Height = $this->height;
     $editor->BasePath = WWW_ROOT . '/www/framework/FCKEditor/';
     $editor->Value = $this->value();
     $editor->ToolbarSet = $this->ToolbarSet;
     if ($this->CustomConfigurationsPath) {
         $editor->Config['CustomConfigurationsPath'] = $this->CustomConfigurationsPath;
     }
     return $editor->CreateHtml();
 }