TinyMCE: enable browser based spellchecking. Tnx ax25 to dig out this option.
[citadel.git] / webcit / static / t / richedit.html
index e71c5934a27583db334540e6b43e7d91d8055db2..e839738af4d7c8afeca7ad533a68dc406314ca5c 100644 (file)
@@ -1,14 +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",
-       theme_advanced_buttons1 : "bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, cut, copy, paste, link, image, help, forecolor, iespell, code",
+       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>