Problem: When I add text to the DIV (Quill TextEditor) and hit the save button, I notice that the text isn't saved in the database. The DIV is supposed to hold the value for my Model's Description property.
How can I solve this?
View:
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<div id="editor-container" asp-for="Description" class="form-control"></div>
<span asp-validation-for="Description" class="text-danger"></span>
<script>
var quill = new Quill('#editor-container', {
modules: {
toolbar: [
[{ header: [1, 2, false] }],
['bold', 'italic', 'underline'],
['image', 'code-block']
]
},
placeholder: 'Compose an epic...',
theme: 'snow' // or 'bubble'
});
</script>
</div>