i have an array of content then how we get content of Tinymce textarea in javascript
function showPreview(value) { $("#preview-container"). load("/material-preview. php", {s:value}); } $('thetextarea'). live("keyup",function (e) { var material = this.
I solved it with code:
// Get the HTML contents of the currently active editor tinyMCE.activeEditor.getContent(); // Get the raw contents of the currently active editor tinyMCE.activeEditor.getContent({format : 'raw'}); // Get content of a specific editor: tinyMCE.get('content id').getContent()
the activeEditor is current editor,but i use tinyMCE.get('editor1').getContent() can not get the value of my editor, hope it can help you
Tinymce API: http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.getContent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With