Initialize an editor and invoke content commands

The old jQuery method calls are now exposed through summernote.create() and summernote.invoke(). The shorthand without a module name still maps to the editor module.

Hello world, this editor starts with one paragraph.

API output
Ready.
Example configuration - Content Commands
const editor = summernote.create('#content-commands-editor', {
  height: 260,
});

summernote.invoke('#content-commands-editor', 'editor.insertText', ' hello world');
summernote.invoke('#content-commands-editor', 'insertText', ' from shorthand');
const html = summernote.invoke('#content-commands-editor', 'code');
summernote.invoke('#content-commands-editor', 'undo');
summernote.invoke('#content-commands-editor', 'redo');