Skip to content

Commit

Permalink
docs: fix a markdown link format (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
arihantverma authored May 1, 2024
1 parent a702f73 commit d3ccb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/extending-the-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const mySignal$ = Signal<number>((r) => {
})
```

Following the approach above, you can access and interact with the built-in cells and signals that the package exports. As a convention, the Cells and Signals are suffixed with `$`. You would most likely need to interact with `rootEditor$` (the Lexical instance), `activeEditor$` (can be the root editor or one of the nested editors). Signals like `createRootEditorSubscription$` and `createActiveEditorSubscription$` let you [hook](https://lexical.dev/docs/concepts/commands#editorregistercommand) up to the Lexical editor commands](https://lexical.dev/docs/concepts/commands#editorregistercommand).
Following the approach above, you can access and interact with the built-in cells and signals that the package exports. As a convention, the Cells and Signals are suffixed with `$`. You would most likely need to interact with `rootEditor$` (the Lexical instance), `activeEditor$` (can be the root editor or one of the nested editors). Signals like `createRootEditorSubscription$` and `createActiveEditorSubscription$` let you [hook](https://lexical.dev/docs/concepts/commands#editorregistercommand) up to the [Lexical editor commands](https://lexical.dev/docs/concepts/commands#editorregistercommand).

Some of the plugins expose signals that let you insert certain node types into the editor. For example, the `codeBlockPlugin` has an `insertCodeBlockNode$` that can be used to insert a code block into the editor.

Expand Down

0 comments on commit d3ccb5a

Please sign in to comment.