Skip to main content

@lexical/react/LexicalHistoryAnnouncePlugin

Interfaces

HistoryAnnouncePluginProps

Defined in: packages/lexical-react/src/LexicalHistoryAnnouncePlugin.ts:19

Properties

messages?

optional messages?: object

Defined in: packages/lexical-react/src/LexicalHistoryAnnouncePlugin.ts:24

Messages announced after the corresponding history command runs. Hosts supply localized strings; defaults are English.

redone?

optional redone?: string

undone?

optional undone?: string

Functions

HistoryAnnouncePlugin()

HistoryAnnouncePlugin(__namedParameters?): null

Defined in: packages/lexical-react/src/LexicalHistoryAnnouncePlugin.ts:40

Announces undo / redo into a polite aria-live region so screen readers pick up history navigation. The announcement fires at COMMAND_PRIORITY_LOW so the history extension's own handler runs first and is unaffected; the handler returns false to keep the command chain intact.

Parameters

__namedParameters?

HistoryAnnouncePluginProps = {}

Returns

null