deleteSelection

The deleteSelection command deletes the currently selected nodes. If no selection exists, nothing will be deleted.

Usage

editor.commands.deleteSelection()