Skip to content

Type Editor


Type Editor / @type-editor/tables / input/handle-triple-click

input/handle-triple-click

Functions

FunctionDescription

handleTripleClick

Handles triple-click events to select an entire table cell.

When the user triple-clicks inside a table cell, this selects the entire cell by creating a CellSelection for that cell.

Example

typescript
// Use in a ProseMirror plugin
new Plugin({
  props: {
    handleTripleClick: handleTripleClick,
  },
});