I'm using tinyMCE as editor on my mvc razor view engine. My issue happens when I try to append the formatted content to specific div. It's shown as html tags instead of the formatted one.
This is the init call:
tinyMCE.init({
selector: 'textarea',
height: 500,
theme: 'modern',
plugins: 'print preview fullpage paste searchreplace autolink directionality bbcode visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount spellchecker imagetools media link contextmenu colorpicker textpattern help',
toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat',
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
],
content_css: [
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
'//www.tinymce.com/css/codepen.min.css'
]
});
and this is the JS script
function x () {
var content = tinyMCE.get('article').getContent();
$('#bodyDiv').html(content)
}
see attached file below

