diff --git a/README.md b/README.md index d530d5c1553..8a1a7118c06 100644 --- a/README.md +++ b/README.md @@ -113,8 +113,12 @@ function Editor() { return ( } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } ErrorBoundary={LexicalErrorBoundary} /> diff --git a/packages/lexical-react/README.md b/packages/lexical-react/README.md index 922cef51f0c..8fe1d695e95 100644 --- a/packages/lexical-react/README.md +++ b/packages/lexical-react/README.md @@ -74,8 +74,12 @@ function Editor() { return ( } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } /> diff --git a/packages/lexical-website/docs/getting-started/react.md b/packages/lexical-website/docs/getting-started/react.md index fd09e720ed8..1501fdf1d5f 100644 --- a/packages/lexical-website/docs/getting-started/react.md +++ b/packages/lexical-website/docs/getting-started/react.md @@ -61,8 +61,12 @@ function Editor() { return ( } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } ErrorBoundary={LexicalErrorBoundary} /> @@ -135,8 +139,12 @@ function Editor() { return ( } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } ErrorBoundary={LexicalErrorBoundary} /> diff --git a/packages/lexical-website/docs/getting-started/theming.md b/packages/lexical-website/docs/getting-started/theming.md index 497c0b0ba16..445cfe271dc 100644 --- a/packages/lexical-website/docs/getting-started/theming.md +++ b/packages/lexical-website/docs/getting-started/theming.md @@ -57,8 +57,12 @@ export default function Editor() { return ( } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } ErrorBoundary={LexicalErrorBoundary} />
diff --git a/packages/lexical-website/docs/react/plugins.md b/packages/lexical-website/docs/react/plugins.md index ca97f7935ca..d49b8af0ae3 100644 --- a/packages/lexical-website/docs/react/plugins.md +++ b/packages/lexical-website/docs/react/plugins.md @@ -45,8 +45,12 @@ React wrapper for `@lexical/plain-text` that adds major features for plain text ```jsx } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } ErrorBoundary={LexicalErrorBoundary} /> ``` @@ -57,8 +61,12 @@ React wrapper for `@lexical/rich-text` that adds major features for rich text ed ```jsx } - placeholder={
Enter some text...
} + contentEditable={ + Enter some text...} + /> + } ErrorBoundary={LexicalErrorBoundary} /> ```