Skip to main content

CAN_REDO_COMMAND

const
const CAN_REDO_COMMAND: LexicalCommand<boolean>

Import

import { CAN_REDO_COMMAND } from '@modular/sdk/editor';

Notes

deprecated
in v0.49.0, use the `canRedo` signal from `HistoryExtension`. A command only reports a change, so a listener registered after the editor is initialized has no way to read the current value. The signal always holds it. Dispatched when the redo availability changes. Payload is true if redo is available.