Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx committed Nov 27, 2024
1 parent 9de29af commit e9e968c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/lexical-website/docs/react/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,16 @@ In order to use `TableOfContentsPlugin`, you need to pass a callback function in

Allows you to get a ref to the underlying editor instance outside of LexicalComposer, which is convenient when you want to interact with the editor
from a separate part of your application.

```jsx
const editorRef = useRef(null);
<EditorRefPlugin editorRef={editorRef} />
```

### `LexicalSelectionAlwaysOnDisplay`

By default, browser text selection becomes invisible when clicking away from the editor. This plugin ensures the selection remains visible.

```jsx
<SelectionAlwaysOnDisplay />
```

0 comments on commit e9e968c

Please sign in to comment.