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

Popular posts from this blog

Resize or Crop Image before Upload Using HTML5 File API

Get Creative With Data Tables: Row Click Events

Determine Appropriate Font-Size for Text iTextSharp