RichEditCommands.delete Property
In This Article
Gets a command to delete text and in-line objects in a selected range.
#Declaration
TypeScript
get delete(): DeleteCommand
#Property Value
Type | Description |
---|---|
Delete |
An object that provides methods that execute the command and check its state. |
#Remarks
Call the execute method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.
richEdit.commands.delete.execute();
To delete table elements, use corresponding client commands (RichEditCommands.deleteTable, RichEditCommands.deleteTableColumns, RichEditCommands.deleteTableRows, RichEditCommands.deleteTableCellsWithShiftVertically, DeleteTableCellsWithShiftHorizontallyCommand)
Refer to the following section for more information: Client Commands.
See Also