Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History
 
 

src

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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 @joinForward @selectNodeForward @joinUp @joinDown @lift @newlineInCode @exitCode @createParagraphNear @liftEmptyBlock @splitBlock @splitBlockKeepMarks @selectParentNode @selectAll @wrapIn @setBlockType @toggleMark @autoJoin @baseKeymap @pcBaseKeymap @macBaseKeymap