@lexical/react/LexicalClearEditorPlugin
Functions
ClearEditorPlugin()
ClearEditorPlugin(
__namedParameters):Element|null
Defined in: packages/lexical-react/src/LexicalClearEditorPlugin.ts:30
Registers a handler for CLEAR_EDITOR_COMMAND that empties the editor and
resets the selection. Provide onClear to run your own logic in place of the
default clearing behavior.
This is a legacy plugin. When building an editor with the extension API, configure ClearEditorExtension instead.
Parameters
__namedParameters
Props
Returns
Element | null
null, this plugin renders no DOM of its own.