2009-04-29 04:52:18 +02:00
|
|
|
/**
|
|
|
|
* Simple TinyMCE initialisation
|
|
|
|
*/
|
|
|
|
if((typeof tinyMCE != 'undefined')) {
|
2009-11-30 22:45:54 +01:00
|
|
|
tinymce.PluginManager.load('advcode', '/some/dir/someplugin/editor_plugin.js');
|
|
|
|
|
2009-04-29 04:52:18 +02:00
|
|
|
tinyMCE.init({
|
|
|
|
mode : "specific_textareas",
|
|
|
|
editor_selector : "htmleditor",
|
|
|
|
width: "100%",
|
|
|
|
auto_resize : false,
|
|
|
|
theme : "advanced",
|
|
|
|
|
|
|
|
theme_advanced_layout_manager: "SimpleLayout",
|
|
|
|
theme_advanced_toolbar_location : "top",
|
|
|
|
theme_advanced_toolbar_align : "left",
|
|
|
|
theme_advanced_toolbar_parent : "right",
|
2009-11-30 22:45:54 +01:00
|
|
|
plugins : "contextmenu,table,emotions,paste,-advcode,spellchecker",
|
2009-04-29 04:52:18 +02:00
|
|
|
blockquote_clear_tag : "p",
|
|
|
|
table_inline_editing : true,
|
|
|
|
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,formatselect,separator,bullist,numlist,outdent,indent,blockquote,hr,charmap",
|
|
|
|
theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,pastetext,pasteword,spellchecker,separator,advcode,search,replace,selectall,visualaid,separator,tablecontrols",
|
|
|
|
theme_advanced_buttons3 : "",
|
|
|
|
|
|
|
|
safari_warning : false,
|
|
|
|
relative_urls : true,
|
|
|
|
verify_html : true
|
|
|
|
});
|
|
|
|
}
|