Last active
February 28, 2018 05:20
-
-
Save AdrianoBiolchi/7ff3c481a35c1c88a8e124647da55420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<textarea name="summernoteInput" id="summernote" class="summernote"></textarea> | |
<script> | |
$(document).ready(function() { | |
//initialize summernote | |
$('#summernote').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); | |
}); | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$('.summernote').summernote('code', content);
in this line How are you getting the content?. I'm sorry I can't see where you have initialized thecontent
variable.