I am loading user input back into summernote for editing, both top and bottom get extra lines added on. Is there a way to fix it?
$('#summernote').summernote('editor.pasteHTML', "<p>hello world</p>");
comes out
"
hello world
"
instead of "hello world"
I ran into the same problem. If you're trying to initialize the editor with html, try doing $('#summernote').summernote('code', "<p>hello world</p>"); instead. The $('#summernote').summernote('code', markupString); is for setting the html directly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With