views:

817

answers:

1

Hai guys, I use TinyMce textarea in one of my web application...

  1. How to check tinymce textarea's value is null or not using javascript?

    document.getElementById("myeditorid").value didnt help me....
    
+1  A: 

It's not a textarea any more, so the value property won't work.

This is how you get a reference to the editor, and the text from it:

var text = tinyMCE.get('myeditorid').getContent();
Guffa
@guffa will javascript recognize tinyMCE.get() function..
Pandiya Chendur