I would like to retrieve the html contents of the tinymce area, but without the cleanup and the filters applied. How can I do that? For example, newlines are removed from the html source with this call, but I want to keep them.
http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.getContent
Function call I have been testing in chrome:
console.log(tinyMCE.activeEditor.getContent({ format: 'raw' }));
console.log(tinyMCE.activeEditor.getContent({ format: 'text' }));
This is the easy way using jQuery:
Be aware that there may be some tinymce internal markers (spans) inside the content.