mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
* fix: Shift-click table grips to select a range of rows or columns Shift or cmd clicking a second row or column grip now extends the selection to cover every row or column in between. Track the anchor and head index on RowSelection and ColumnSelection so every grip in the range highlights, and a cell that spans rows or columns no longer pulls its neighbours into the selection. The inline selection menu collapsed the selection on pointerdown, before the grip handler could read it, so there was nothing left to extend. Leave the selection alone when the interaction is on a grip. Hide the insert and move items in the row and column menus when the selection covers more than one row or column, as they act on a single row or column. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix: Take the selected row and column range from the selection selectedRect grows past the selected rows or columns when a cell spans them, so read the range from the selection where it is known. Keeps the menus and the commands that act on a selection in step with the range the grips highlight. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
https://prosemirror.net/docs/ref/#commands
Commands are building block functions that encapsulate an editing action. A command function takes an editor state, optionally a dispatch function that it can use to dispatch a transaction and optionally an EditorView instance. It should return a boolean that indicates whether it could perform any action.
Additional commands that are not included as part of prosemirror-commands, but are often reused can be found in this folder.