How to use TinyMCE in ASP .NET?


howdy everyone,

well, its been quite a few days since I dropped something on my blog, been eXtreeemly busy these days. Did any one missed me?? 😀

OK, today I got this little test application for you people who are wondering: “how to use TinyMCE in ASP .NET?”. Trust me, its very simple and very straight forward.

Here’s how I used TinyMCE in my application:-

I just added this in the head tag.

<script language=”javascript” type=”text/javascript” src=”tinymce/jscripts/tiny_mce/tiny_mce.js”></script>
<script language=”javascript” type=”text/javascript”>
tinyMCE.init({
mode : “textareas”,
theme : “simple”
});
//you can also used “advanced” for themes
</script>

After that just put a multiline textbox in and it will take the form of a feature rich WYSIWYG editor.

You can also ‘skin’ this as well. By default the download comes with two skins, one is the advanced and the other a much simpler one.

Download the code