spaw_root =& $spaw_root; include_once($spaw_root . "spaw_control.class.php"); } function Textarea($textarea, $wikitext, $name = 'edit[content]') { // global $LANG, $WikiTheme; $id = "spaw_editor"; /*SPAW_Wysiwyg( $control_name='spaweditor', // control's name $value='', // initial value $lang='', // language $mode = '', // toolbar mode $theme='', // theme (skin) $width='100%', // width $height='300px', // height $css_stylesheet='', // css stylesheet file for content $dropdown_data='' // data for dropdowns (style, font, etc.) */ $this->SPAW = new SPAW_Wysiwyg($id, $textarea->_content); $textarea->SetAttr('id', $name); $this->SPAW->show(); $out = HTML::div(array("id" => $id, 'style' => 'display:none'), $wikitext); return $out; } } // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: