bettertend/frontend/node_modules/prosemirror-commands/src
Jason Fraser 1ea6cf49ad Initial commit: contract management frontend built 2025-08-13 23:45:28 -04:00
..
README.md Initial commit: contract management frontend built 2025-08-13 23:45:28 -04:00
commands.ts Initial commit: contract management frontend built 2025-08-13 23:45:28 -04:00

README.md

This module exports a number of commands, which 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. When no dispatch callback is passed, the command should do a 'dry run', determining whether it is applicable, but not actually doing anything.

These are mostly used to bind keys and define menu items.

@chainCommands @deleteSelection @joinBackward @selectNodeBackward @joinTextblockBackward @joinForward @selectNodeForward @joinTextblockForward @joinUp @joinDown @lift @newlineInCode @exitCode @createParagraphNear @liftEmptyBlock @splitBlock @splitBlockAs @splitBlockKeepMarks @selectParentNode @selectAll @selectTextblockStart @selectTextblockEnd @wrapIn @setBlockType @toggleMark @autoJoin @baseKeymap @pcBaseKeymap @macBaseKeymap