TinyMCE not working on IE 7


Happy new year folks,  09′ started off for me with a very strange bug. I was working on a form and decided to use TinyMCE in it for multi-line text editing and it was working A-OK in FF3, Chrome and Safari but not on IE 7. God that was a real pain in the butt going through all the javascript and I had absolutely no idea what was happening. It turned out that I had

<script language=”javascript” type=”text/javascript” src=”../tinymce/jscripts/tiny_mce/tiny_mce.js”></script>

this line in both master page and content page. I removed one of them and walla! it started working.

I hope some of you folks might find this post useful some day!

Cheers.

Advertisements

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