TinyMCE – A Common Sense Configuration
TinyMCE is an open source WYSIWYG editor that is pretty popular, and used in many applications including being the editor installed into Wordpress. It’s small and gets the job done. The only downside is that it’s a pig to configure and the documentation is of a chocolate fireguard caliber. So here, if anyone wants it, is a TinyMCE configuration block I knocked together that contains all the stuff you need to act as a web based content entry text area. In fact, it’s an exact clone of the Wordpress editor.
<script type=”text/javascript”>
tinyMCE.init({
mode: “textareas”,
theme: “advanced”,
theme_advanced_toolbar_location: “top”,
theme_advanced_toolbar_align: “left”,
theme_advanced_buttons2 : “”,
theme_advanced_buttons3: “”,
plugins : “inlinepopups”,
dialog_type : “modal”,
theme_advanced_buttons1_add: “bullist,numlist,blockquote,image,link,unlink,code “,
theme_advanced_disable: “formatselect, fontselect, fontsizeselect, styleselect, justifyfull ”
});
</script>
I’ve just knocked together a JavaScript pager for use in an application I’m working on and thought it may be of use to other people. I’ve therefore converted it to a jQuery plugin and released it under joint MIT and GPL licenses and it is entirely free for you to use or mess about with.
