# External API Sample

My Custom Toolbar

# External API

You can use summernote's external api. see below code

    $(".summernote").summernote("module.method"[, params...]);

Default module is 'editor'

    $(".summernote").summernote("editor.bold"); == $(".summernote").summernote("bold");

# Use API List

## editor.saveRange - save current range

## editor.createRange - create range

## editor.saveNode - save current node list to $editable.data('childNodes')

## editor.restoreRange - restore lately range

## edtior.restoreNode - restore lately node list

## editor.undo - Undo

## editor.redo - Redo

## editor.beforeCommand

## editor.afterCommand

## editor.bold

## editor.italic

## editor.underline

## editor.strikethrough

## editor.formatBlock

## editor.superscript

## editor.subscript

## editor.justifyLeft

## editor.justifyRight

## editor.justifyCenter

## editor.removeFormat

## editor.backColor

## editor.foreColor

## editor.fontName

## editor.tab

## editor.untab

## editor.insertParagraph

## editor.insertOrderedList

## editor.insertUnorderedList

## editor.indent

## editor.outdent

## editor.insertImage

## editor.insertNode

## editor.insertText

## editor.formatPara

## editor.formatH1~6

## editor.fontSize

## editor.lineHeight

## editor.unlink

## editor.createLink

## editor.getLinkInfo

## editor.insertTable

## editor.floatMe

## editor.resize

## editor.removeMedia