This is the value that's in the database and being passed to the view:
<p>this is a paragraph</p>
This is what is showing in the Editor:
<p>this is a paragraph</p>
I've searched online for the solution, and found that I need to set encoded = false in the editor, and [AllowHtml] attribute to field in the class. I did that, but am still having the issue.
Here is the code in the view for the editor -- the first line appends a text area into a div:
$("#divParagraphs").append('<div class="search-box"><div class="row"><div class="col-md-12">Paragraph:</div></div><div class="row"><div class="col-md-12"><textarea class="Paragraph" id=' + id + '></textarea><input type="hidden" id=' + id + '_id value=' + pid + ' /></div></div></div>');
$("#" + id).kendoEditor({
encoded: false,
tools: [
"bold",
"italic",
"underline",
"strikethrough",
"justifyLeft",
"justifyCenter",
"justifyRight",
"justifyFull",
"createLink",
"unlink",
"insertImage",
"createTable",
"addColumnLeft",
"addColumnRight",
"addRowAbove",
"addRowBelow",
"deleteRow",
"deleteColumn",
"foreColor",
"backColor"
]
});
I'm out of ideas :-) Please help.
Thanks,
Mike