Apply emphasis commands by API
These commands still map directly to editor methods. Each button selects the highlighted phrase first, then runs
the corresponding command through summernote.invoke().
Use the API buttons to style this selected phrase without touching the toolbar.
HTML output
Ready.
Example configuration - Text Emphasis
summernote.create('#font-emphasis-editor', {
height: 240,
});
summernote.invoke('#font-emphasis-editor', 'bold');
summernote.invoke('#font-emphasis-editor', 'italic');
summernote.invoke('#font-emphasis-editor', 'underline');
summernote.invoke('#font-emphasis-editor', 'strikethrough');