I am getting this error : Uncaught TypeError: Cannot read property 'getContent' of undefined
if (tinymce.editors.length > 0) {
alert('editor exist')
var myEditor = tinyMCE.get['rteCaseHeading'].getContent();
$("#bookId").html(myEditor);
}
In Html :
<textarea class="mceEditor" id="rteCaseHeading" rows="10" cols="100" style="height: 300px"> </textarea>
I also have specified : editor_selector : "mceEditor",during tinyMCE init.
I have referred various links/questions on this error and implemented.
This somehow still throws error though length of editors is greater than zero.
Someone , please suggest am struggling since more than 2-3 hrs with this issue. [UPDATE]
I referred this link and added the below code : http://jsfiddle.net/9euk9/49/
ed.on('change', function () {
ed.save();
});
Still, no luck. Thanks a lot!
.triggerSave();method before using the.getContent();method?