Skip to content

Commit 61097a8

Browse files
authored
fixed the names of plugins used in the docs (#2385)
1 parent f7c510b commit 61097a8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/lexical-website-new/docs/react/plugins.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ React-based plugins are using Lexical editor instance from `<LexicalComposer>` c
88

99
```jsx
1010
<LexicalComposer initialConfig={initialConfig}>
11-
<LexicalPlainTextPlugin
12-
contentEditable={<LexicalContentEditable />}
11+
<PlainTextPlugin
12+
contentEditable={<ContentEditable />}
1313
placeholder={<div>Enter some text...</div>}
1414
/>
15-
<LexicalHistoryPlugin />
16-
<LexicalOnChangePlugin onChange={onChange} />
15+
<HistoryPlugin />
16+
<OnChangePlugin onChange={onChange} />
1717
...
1818
</LexicalComposer>
1919
```
@@ -23,8 +23,8 @@ React-based plugins are using Lexical editor instance from `<LexicalComposer>` c
2323
React wrapper for `@lexical/plain-text` that adds major features for plain text editing, including typing, deletion and copy/pasting
2424

2525
```jsx
26-
<LexicalPlainTextPlugin
27-
contentEditable={<LexicalContentEditable />}
26+
<PlainTextPlugin
27+
contentEditable={<ContentEditable />}
2828
placeholder={<div>Enter some text...</div>}
2929
/>
3030
```
@@ -34,8 +34,8 @@ React wrapper for `@lexical/plain-text` that adds major features for plain text
3434
React wrapper for `@lexical/rich-text` that adds major features for rich text editing, including typing, deletion, copy/pasting, indent/outdent and bold/italic/underline/strikethrough text formatting
3535

3636
```jsx
37-
<LexicalRichTextPlugin
38-
contentEditable={<LexicalContentEditable />}
37+
<RichTextPlugin
38+
contentEditable={<ContentEditable />}
3939
placeholder={null}
4040
/>
4141
```
@@ -45,47 +45,47 @@ React wrapper for `@lexical/rich-text` that adds major features for rich text ed
4545
Plugin that calls `onChange` whenever Lexical state is updated. Using `ignoreInitialChange` (`true` by default) and `ignoreSelectionChange` (`false` by default) can give more granular control over changes that are causing `onChange` call
4646

4747
```jsx
48-
<LexicalOnChangePlugin onChange={onChange} />
48+
<OnChangePlugin onChange={onChange} />
4949
```
5050

5151
### `LexicalHistoryPlugin`
5252

5353
React wrapper for `@lexical/history` that adds support for history stack management and `undo` / `redo` commands
5454

5555
```jsx
56-
<LexicalHistoryPlugin />
56+
<HistoryPlugin />
5757
```
5858

5959
### `LexicalLinkPlugin`
6060

6161
React wrapper for `@lexical/link` that adds support for links, including `toggleLink` command support that toggles link for selected text
6262

6363
```jsx
64-
<LexicalLinkPlugin />
64+
<LinkPlugin />
6565
```
6666

6767
### `LexicalListPlugin`
6868

6969
React wrapper for `@lexical/list` that adds support for lists (ordered and unordered)
7070

7171
```jsx
72-
<LexicalLinkPlugin />
72+
<ListPlugin />
7373
```
7474

7575
### `LexicalCheckListPlugin`
7676

7777
React wrapper for `@lexical/list` that adds support for check lists. Note that it requires some css to render check/uncheck marks. See PlaygroundEditorTheme.css for details.
7878

7979
```jsx
80-
<LexicalLinkPlugin />
80+
<CheckListPlugin />
8181
```
8282

8383
### `LexicalTablePlugin`
8484

8585
React wrapper for `@lexical/table` that adds support for tables
8686

8787
```jsx
88-
<LexicalTablePlugin />
88+
<TablePlugin />
8989
```
9090

9191
### `LexicalAutoLinkPlugin`
@@ -112,7 +112,7 @@ const MATCHERS = [
112112

113113
...
114114

115-
<LexicalAutoLinkPlugin matchers=[MATCHERS] />
115+
<AutoLinkPlugin matchers=[MATCHERS] />
116116
```
117117

118118
### `LexicalAutoScrollPlugin`
@@ -123,7 +123,7 @@ Lexical auto-scrolls its contenteditable container while typing. This plugin can
123123
<div ref={containerWithScrollRef}>
124124
<LexicalComposer>
125125
...
126-
<LexicalAutoScrollPlugin scrollRef={containerWithScrollRef} />
126+
<AutoScrollPlugin scrollRef={containerWithScrollRef} />
127127
</LexicalComposer>
128128
</div>
129129
```

0 commit comments

Comments
 (0)