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 {
17 function Head($name='edit[content]') {
18 $basepath = DATA_PATH.'/lib/spaw/';
19 $spaw_root = PHPWIKI_DIR . "/lib/spaw/";
20 $spaw_base_url = "$basepath";
21 $spaw_dir = "$basepath";
22 $this->spaw_root =& $spaw_root;
23 include_once($spaw_root. "spaw_control.class.php");
26 function Textarea($textarea, $wikitext, $name='edit[content]') {
27 // global $LANG, $WikiTheme;
30 $control_name='spaweditor', // control's name
31 $value='', // initial value
33 $mode = '', // toolbar mode
34 $theme='', // theme (skin)
35 $width='100%', // width
36 $height='300px', // height
37 $css_stylesheet='', // css stylesheet file for content
38 $dropdown_data='' // data for dropdowns (style, font, etc.)
40 $this->SPAW = new SPAW_Wysiwyg($id, $textarea->_content);
41 $textarea->SetAttr('id', $name);
43 $out = HTML::div(array("id"=>$id, 'style'=>'display:none'),
53 // c-hanging-comment-ender-p: nil
54 // indent-tabs-mode: nil