I have a problem with TinyMCE 4 - I can't get HTML content from textarea. I am using the following code:
<textarea id="tiny">some text</textarea>
<a id="click" href="#">click</a>
<script>
$(document).ready(function () {
$("#click").click(function(e){
e.preventDefault();
var content=tinymce.get('content id').getContent();
console.log(content);
});
});
</script>
And as a result I'm getting this:
Question is how to get HTML content from <textarea>
?