TinyMCE: enable browser based spellchecking. Tnx ax25 to dig out this option.
[citadel.git] / webcit / static / t / richedit.html
index bdf292ccfce9b52393934f6b2a25be2a41a98c82..e839738af4d7c8afeca7ad533a68dc406314ca5c 100644 (file)
@@ -1,15 +1,19 @@
 <script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
 <script type="text/javascript">
+idealHeight = $('entmsg').offsetHeight - $('msgtext').offsetTop - 10;
 tinyMCE.init({
        mode : "textareas",
-       width : "99%",
+       width : "100%",
+       height : idealHeight,
        browsers : "msie,gecko,safari,opera",
        theme : "advanced",
        plugins : "iespell",
+       gecko_spellcheck : true,
        theme_advanced_buttons1 : "bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, blockquote, bullist, numlist, cut, copy, paste, link, image, help, forecolor, iespell, code",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
-       content_css : "static/webcit-tinymce.css",
+       theme_advanced_toolbar_location : "top",
+       content_css : "static/styles/webcit-tinymce.css",
        entity_encoding : "raw"
 });
 </script>