3 * Just IE 5.5+ and Gecko
5 * Download: http://sourceforge.net/projects/spaw
6 * requires installation of spaw as lib/spaw
7 * modify lib/spaw/config/spaw_control.config.php to your needs.
13 require_once 'lib/WysiwygEdit.php';
15 class WysiwygEdit_spaw extends WysiwygEdit
18 function Head($name = 'edit[content]')
20 $basepath = DATA_PATH . '/lib/spaw/';
21 $spaw_root = PHPWIKI_DIR . "/lib/spaw/";
22 $spaw_base_url = "$basepath";
23 $spaw_dir = "$basepath";
24 $this->spaw_root =& $spaw_root;
25 include_once($spaw_root . "spaw_control.class.php");
28 function Textarea($textarea, $wikitext, $name = 'edit[content]')
30 // global $LANG, $WikiTheme;
33 $control_name='spaweditor', // control's name
34 $value='', // initial value
36 $mode = '', // toolbar mode
37 $theme='', // theme (skin)
38 $width='100%', // width
39 $height='300px', // height
40 $css_stylesheet='', // css stylesheet file for content
41 $dropdown_data='' // data for dropdowns (style, font, etc.)
43 $this->SPAW = new SPAW_Wysiwyg($id, $textarea->_content);
44 $textarea->SetAttr('id', $name);
46 $out = HTML::div(array("id" => $id, 'style' => 'display:none'),
56 // c-hanging-comment-ender-p: nil
57 // indent-tabs-mode: nil