2 rcs_id('$Id: tinymce.php,v 1.2 2005-10-31 16:41:46 rurban Exp $');
4 * Multiple browser support, currently Mozilla (PC, Mac and Linux),
5 * MSIE (PC) and FireFox (PC, Mac and Linux) and some limited Safari support.
7 * Download: http://tinymce.moxiecode.com/
8 * Suggested installation of the jscripts subdirectory
9 * tinymce/jscripts/tiny_mce/ into themes/default/tiny_mce/
11 * WARNING! Probably incompatible with ENABLE_XHTML_XML
13 * @package WysiwygEdit
17 require_once("lib/WysiwygEdit.php");
19 class WysiwygEdit_tinymce extends WysiwygEdit {
21 function WysiwygEdit_tinymce() {
22 $this->_transformer_tags = false;
23 $this->BasePath = DATA_PATH.'/themes/default/tiny_mce/';
24 $this->_htmltextid = "edit:content";
25 $this->_wikitextid = "editareawiki";
28 function Head($name='edit[content]') {
29 global $LANG, $WikiTheme;
30 $WikiTheme->addMoreHeaders
31 (Javascript('', array('src' => $this->BasePath . 'tiny_mce.js',
32 'language' => 'JavaScript')));
40 theme_advanced_toolbar_location : \"top\",
41 theme_advanced_toolbar_align : \"left\",
42 theme_advanced_path_location : \"bottom\",
43 theme_advanced_buttons1 : \"bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink\",
44 theme_advanced_buttons2 : \"\",
45 theme_advanced_buttons3 : \"\",
48 plugins : \"table,contextmenu,paste,searchreplace,iespell,insertdatetime\",
49 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]\"
54 // to be called after </textarea>
56 function Textarea($textarea, $wikitext, $name='edit[content]') {
57 $out = HTML($textarea,
58 HTML::div(array("id" => $this->_wikitextid,
59 'style'=>'display:none'),
61 //TODO: maybe some more custom links
67 $Log: not supported by cvs2svn $
68 Revision 1.1 2005/10/30 14:22:15 rurban
77 // c-hanging-comment-ender-p: nil
78 // indent-tabs-mode: nil