Event emitter for Lexical editor commands. Manages subscriptions and broadcasts commands to all handlers.
Emit a command to all subscribers.
The command string to broadcast.
Subscribe to command events.
Callback invoked when a command is emitted.
Unsubscribe function to remove the handler.
Event emitter for Lexical editor commands. Manages subscriptions and broadcasts commands to all handlers.