Skip to content

Type Editor


Type Editor / @type-editor/commands / del / del

Variable: del

ts
const del: Command;

Defined in: del.ts:18

Default command for the delete/forward-delete key.

This command chains together three operations:

  1. Delete the selection if one exists
  2. Try to join with the block after the cursor
  3. Try to select the node after the cursor

This provides comprehensive forward-delete behavior for most editing scenarios.