root/trunk/common/tinymce_conf.js.php

Revision 757, 1.7 KB (checked in by michiel, 11 months ago)

Introduce input formats.
Supported right now: HTML, BBCode and MediaWiki?.

Re #105

Line 
1tinyMCE.init({
2    <?php
3    if (array_key_exists("autoload", $_REQUEST) && $_REQUEST["autoload"])
4        echo "mode : \"exact\",\n";
5    else
6        echo "mode : \"none\",\n";
7    ?>
8    elements                           : "editor_area",
9    theme                              : "advanced",
10    <?php
11    if (array_key_exists("mode", $_REQUEST) && $_REQUEST["mode"] == "BBC")
12        echo "plugins                            : \"spellchecker,inlinepopups,table,advhr,advimage,advlink,flash,paste,noneditable,contextmenu,bbcode\",\n";
13    else
14        echo "plugins                            : \"spellchecker,inlinepopups,table,advhr,advimage,advlink,flash,paste,noneditable,contextmenu\",\n";
15    ?>
16    theme_advanced_buttons1_add_before : "newdocument,separator",
17    theme_advanced_buttons1_add        : "fontselect,fontsizeselect",
18    theme_advanced_buttons2_add        : "separator,forecolor,backcolor,liststyle",
19    theme_advanced_buttons2_add_before : "cut,copy,paste,pastetext,pasteword,separator,",
20    theme_advanced_buttons3_add_before : "tablecontrols,separator",
21    theme_advanced_buttons3_add        : "flash,advhr,separator,spellchecker",
22    theme_advanced_toolbar_location    : "top",
23    theme_advanced_toolbar_align       : "left",
24    extended_valid_elements            : "hr[class|width|size|noshade]",
25    file_browser_callback              : "ajaxfilemanager",
26    paste_use_dialog                   : false,
27    theme_advanced_resizing            : true,
28    theme_advanced_resize_horizontal   : true,
29    apply_source_formatting            : true,
30    force_br_newlines                  : true,
31    force_p_newlines                   : false,       
32    relative_urls                      : false,
33    width                              : "740",
34    height                             : "420"
35});
Note: See TracBrowser for help on using the browser.