_transformer_tags = false; $this->BasePath = DATA_PATH . '/themes/default/tiny_mce/'; $this->_htmltextid = "edit-content"; $this->_wikitextid = "editareawiki"; } function Head($name = 'edit[content]') { global $LANG, $WikiTheme; $WikiTheme->addMoreHeaders (Javascript('', array('src' => $this->BasePath . 'tiny_mce.js', 'language' => 'JavaScript'))); return Javascript(" tinyMCE.init({ mode : 'exact', elements: '$name', theme : 'advanced', language: \"$LANG\", ask : false, theme_advanced_toolbar_location : \"top\", theme_advanced_toolbar_align : \"left\", theme_advanced_path_location : \"bottom\", theme_advanced_buttons1 : \"bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink\", theme_advanced_buttons2 : \"\", theme_advanced_buttons3 : \"\", });"); /* plugins : \"table,contextmenu,paste,searchreplace,iespell,insertdatetime\", extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\" }); */ } // to be called after // name ignored function Textarea($textarea, $wikitext, $name = 'edit[content]') { $out = HTML($textarea, HTML::div(array("id" => $this->_wikitextid, 'style' => 'display:none'), $wikitext), "\n"); //TODO: maybe some more custom links return $out; } } // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: