mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
* Initial plan * fix: allow Tab to indent list items inside toggle blocks When the cursor is inside a list within a toggle block, the indentBlock command was consuming the Tab key event before the list's sinkListItem handler could run. This happened because indentBlock found a previous container_toggle sibling at the ancestor level and returned true. Fix: return false early in indentBlock when the cursor is inside a list, allowing the list's Tab handler to handle indentation correctly. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.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.