summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBret McMillan <bretm@redhat.com>2008-11-17 13:56:15 -0500
committerBret McMillan <bretm@redhat.com>2008-11-17 13:56:15 -0500
commit6e6e46400b225f0ed2152f076a1f17622c31796c (patch)
tree2ca5327293edf28c9348834833e5687ca87c9aa2
parent3aae661f6d3540ef2645015a89db07303f324a9e (diff)
downloadmediawiki-stuff-6e6e46400b225f0ed2152f076a1f17622c31796c.zip
mediawiki-stuff-6e6e46400b225f0ed2152f076a1f17622c31796c.tar.gz
mediawiki-stuff-6e6e46400b225f0ed2152f076a1f17622c31796c.tar.xz
tweak initialization of tinymce to get closer to desired results
-rw-r--r--extensions/TinyMCE_MW2.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/extensions/TinyMCE_MW2.php b/extensions/TinyMCE_MW2.php
index 370eb50..3866a80 100644
--- a/extensions/TinyMCE_MW2.php
+++ b/extensions/TinyMCE_MW2.php
@@ -62,15 +62,24 @@ function toggleEditor(id) {
$wgOut->addScript( "<script language=\"javascript\" type=\"text/javascript\" src=\"$wgScriptPath/extensions/$wgTinymceDir/jscripts/tiny_mce/tiny_mce.js\"></script><script language=\"javascript\" type=\"text/javascript\">tinyMCE.init({
mode : \"textareas\",
theme : \"advanced\",
- plugins : \"mediawiki\",
+ plugins : \"safari,inlinepopups,spellchecker,paste,media,fullscreen,table,mediawiki\",
entity_encoding : \"named\",
remove_linebreaks : false,
convert_newlines_to_brs : false,
- force_p_newlines : true,
+ force_p_newlines : false,
force_br_newlines : false,
- inline_styles : true,
+ forced_root_block : '',
+ inline_styles : false,
convert_fonts_to_spans : true,
apply_source_formatting : false,
+ theme_advanced_buttons1 : \"bold,italic,strikethrough,underline,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,|,outdent,indent,|,link,unlink,|,fullscreen\",
+ theme_advanced_buttons2 : \"formatselect,forecolor,|,image,media,charmap,|,undo,redo\",
+ theme_advanced_buttons3 : \"\",
+ theme_advanced_buttons4 : \"\",
+ theme_advanced_toolbar_location : \"top\",
+ theme_advanced_toolbar_align : \"left\",
+ theme_advanced_statusbar_location : \"bottom\",
+ theme_advanced_resizing : true,
document_base_url : \"$wgMyWikiURL\"});</script>" );
#Since editing add the button