<pre> <div class="form-group"> @Html.LabelFor(model => model.long_Description, htmlAttributes: new { @class = "control-label col-md-4" }) <div id="summernote"></div> <div class="col-md-10"> @Html.TextAreaFor(model => model.long_Description, new { @id = "long_Description", @style = "display:none;", @class = "form-control" }) @Html.ValidationMessageFor(model => model.long_Description, "", new { @class = "text-danger" }) </div> </div> <script type="text/javascript"> $(document).ready(function () { $('#summernote').summernote( { tabsize: 2, height: 150 }); var editor = $('#long_Description').html(); $('#summernote').html(editor); $('#editorbtn').hover(function () { var editor = $('.note-editable').html(); $('#long_Description').html(editor); }); }); </script> <input type="submit" value="Add" id="editorbtn" class="btn btn-primary" />
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSERMWFRUVERUVEBUWFRUVFRYVFRUWFxUVFRUYHSggGBolGxUVIT..........> it should be <img src="/Upload/apple.jpg">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)