Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

protectCollapsed

This command will protect the collapsed items from being deleted.

If current selection contains a collapsed item, we don't want the user to delete this selection by pressing Backspace or Delete, because this could be unintentional.

In such case, we will stop the delete action and expand the collapsed items instead. Therefore the user can clearly know what content he is trying to delete.

const protectCollapsed: Command;