selection:change#
Emitted when the selection changes. Payload: { range, reason? }.
Type: signal.
Payload:
- range — event-specific value
- reason — string — why a history entry was recorded
Example:
app.on('selection:change', ({ range, reason }) => {
console.log('selection:change', { range, reason });
});
selection:deselectall#
Emitted when the selection is cleared programmatically.
Type: signal.
Payload: none.
Example:
app.on('selection:deselectall', () => {
// react to the signal
});
selection:done#
Emitted when a selection operation is considered complete (mouse, keyboard, triple-click, etc.).
Type: signal.
Payload:
- range — event-specific value
- reason — string — why a history entry was recorded
Example:
app.on('selection:done', ({ range, reason }) => {
console.log('selection:done', { range, reason });
});
selection:selectall#
Emitted when select-all is triggered in the editor.
Type: signal.
Payload: none.
Example:
app.on('selection:selectall', () => {
// react to the signal
});