Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<div class="form-group">
<textarea name="summernoteInput" id="summernote" class="summernote"></textarea>
$(document).ready(function() {
//initialize summernote
lang: 'pt-BR',
height: 300,
toolbar: [
// [groupName, [list of button]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['fontname', ['fontname']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['picture', ['picture']],
['link', ['link']],
['video', ['video']],
['hr', ['hr']],
//set the content to summernote using `code` attribute.
$('.summernote').summernote('code', content);

This comment has been minimized.

Copy link

commented Feb 28, 2018

$('.summernote').summernote('code', content); in this line How are you getting the content?. I'm sorry I can't see where you have initialized the content variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.