Sweet Summernote
Background
If you ever wish to add WYSIWYG functionality to your web project, summernote.js is probably your best bet! It will convert your textarea control to a fully functional WYSIWYG control with ability to gain access to the content of the control in HTML format.
Implementation
To change a simple textarea control to a WYSIWYG control,
$('#summernote').summernote();
To fetch the HTML content of the control:
var sHTML = $('.summernote').code();
Wishing you all the best as you try this out.
Comments
Post a Comment