Insert text and paste HTML
insertText inserts plain text at the caret, while pasteHTML inserts sanitized markup.
Hello
HTML output
Ready.
Example configuration - Text and HTML
summernote.create('#insertion-text-html-editor', {
height: 220,
});
summernote.invoke('#insertion-text-html-editor', 'insertText', ' world');
summernote.invoke('#insertion-text-html-editor', 'pasteHTML', ' from HTML');