createCommand
functionCrete a command that can be used with `editor.dispatchCommand` and `editor.registerCommand`. Commands are used by unique reference, not by name.
Import
import { createCommand } from '@modular/sdk/editor';Notes
- returns
- A new LexicalCommand
- __NO_SIDE_EFFECTS__