From d1df2aa6d8abca2d116b0277abdcb17558d48505 Mon Sep 17 00:00:00 2001 From: Reid Barber Date: Mon, 15 Aug 2022 13:33:20 -0500 Subject: [PATCH] fix broken links in docs --- packages/lexical-website-new/docs/concepts/commands.md | 4 ++-- packages/lexical-website-new/docs/concepts/transforms.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/lexical-website-new/docs/concepts/commands.md b/packages/lexical-website-new/docs/concepts/commands.md index 050ed2abfc4..9bbff31d8fa 100644 --- a/packages/lexical-website-new/docs/concepts/commands.md +++ b/packages/lexical-website-new/docs/concepts/commands.md @@ -6,7 +6,7 @@ sidebar_position: 2 Commands are a very powerful feature of Lexical that lets you register listeners for events like `KEY_ENTER_COMMAND` or `KEY_TAB_COMMAND` and contextually react to them _wherever_ & _however_ you'd like. -This is pattern is useful for building [`Toolbars`](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/ToolbarPlugin.tsx) or complex `Plugins` and `Nodes` such as the [`TablePlugin`](https://github.com/facebook/lexical/tree/main/packages/lexical-table) which require special handling for `selection`, `keyboard events`, and more. +This is pattern is useful for building [`Toolbars`](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx) or complex `Plugins` and `Nodes` such as the [`TablePlugin`](https://github.com/facebook/lexical/tree/main/packages/lexical-table) which require special handling for `selection`, `keyboard events`, and more. When registering a `command` you supply a `priority` and can return `true` to mark it as "handled", which stops other listeners from receiving the event. If a command isn't handled explicitly by you, it's likely handled by default in the [`RichTextPlugin`](https://github.com/facebook/lexical/blob/main/packages/lexical-rich-text/src/index.ts) or the [`PlainTextPlugin`](https://github.com/facebook/lexical/blob/main/packages/lexical-plain-text/src/index.ts). @@ -47,7 +47,7 @@ editor.dispatchCommand(KEY_ARROW_LEFT_COMMAND, event); editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'italic'); ``` -And another example from the [`ToolbarPlugin`](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/ToolbarPlugin.tsx) in our Playground. +And another example from the [`ToolbarPlugin`](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx) in our Playground. ```js const formatBulletList = () => { diff --git a/packages/lexical-website-new/docs/concepts/transforms.md b/packages/lexical-website-new/docs/concepts/transforms.md index 2fc9de6b13d..8fea5efdb5c 100644 --- a/packages/lexical-website-new/docs/concepts/transforms.md +++ b/packages/lexical-website-new/docs/concepts/transforms.md @@ -134,6 +134,6 @@ registerLexicalTextEntity( ## Examples 1. [Emoticons (guided example)](https://github.com/facebook/lexical/blob/main/examples/emoticons.md) -2. [Emojis](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/EmojisPlugin.ts) -3. [AutoLink](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/AutoLinkPlugin.tsx) +2. [Emojis](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/EmojisPlugin/index.ts) +3. [AutoLink](https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/AutoLinkPlugin/index.tsx) 4. [HashtagPlugin](https://github.com/facebook/lexical/blob/main/packages/lexical-react/src/LexicalHashtagPlugin.ts)