deleteRange commands

The deleteRange command deletes everything in a given range. It requires a range attribute of type Range.

Parameters

range: Range

Use the deleteRange command

editor.commands.deleteRange({ from: 0, to: 12 })