Simple Text Editor for MVC C# with Image
Integration of Summernote WYSWYG Editor with MVC C#
Features :
#Image Upload Feature
#Image is stored as base 64 txt
Credits To : http://summernote.org/ http://www.haneefputtur.com/
Steps for installation
public class News { public string Title { get; set; } [AllowHtml] public string Content { get; set; }
}
Copy the folder Summernote to Scripts folder
<script src="~/Scripts/summernote/summernote.js"></script>Note That Jquery references in Layout file is moved above header so that jquery is included before summernote.
<script> //$(document).ready(function () { // $('#Content').summernote(); //}); $('#Content').summernote({ height: 300, // set editor height minHeight: null, // set minimum height of editor maxHeight: null, // set maximum height of editor focus: true // set focus to editable area after initializing summernote }); </script>