available Editor with model @model:
@model service.Models.ServiceViewModel
@(Html.Kendo().Editor()
.Name("Description")
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline()
.JustifyLeft().JustifyCenter().JustifyRight()
.InsertUnorderedList().InsertOrderedList()
)
.StyleSheets(css => css
.Add(Url.Content("~/shared/web/editor/editorStyles.css"))
)
.Value(@<text></text>)
.HtmlAttributes(new { style = "width: 100%;height:400px" })
)
public class ServiceViewModel
{
********
public string Description { set; get; }
*****
}
I save the data to the database.
When I pull the data to correct, the data is shown without markup.
At the same time, the data is saved as:
"<p>1</p><p><strong>2</strong></p><p><em>3</em></p>"