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

Consume ASP.NET Web API Using PHP and JQuery

Determine Appropriate Font-Size for Text iTextSharp

T-SQL: Prudent use of Select ... As