By: https://github.com/hackerwins/summernote
Summernote is a javascript program that helps you to create WYSIWYG Editor on web.
Home Page: http://hackerwins.github.io/summernote/
Summernote has something specials no like others.
- Simple UI
- Interative WYSIWYG editing
- Handy integration with server
- Gmail WYSIWYG Editor (http://www.gmail.com)
- Redactor (http://imperavi.com/redactor/)
Place div
tag to somewhere in the body
tag. This element will be placed by the visual representation of the summernote.
<div id="summernote">Hello Summernote</div>
Finally, run script after document ready.
$(document).ready(function() {
$('#summernote').summernote();
});
Get HTML code
if you need.
var sHTML = $('#summernote').code();
Destroy
summernote.
$('#summernote').destroy();