Skip to content

Commit

Permalink
[react-native-lexical] remove diff code
Browse files Browse the repository at this point in the history
  • Loading branch information
strdr4605 committed Feb 21, 2024
1 parent 3c4717b commit 7e153c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions posts/2024-02-06-react-native-lexical.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,7 @@ And use it in our `Editor.tsx`:
+import { EditorStateInitPlugin } from "./plugins/EditorStateInitPlugin";
import "./Editor.css";
function onError(error: unknown) {
@@ -17,7 +18,14 @@ export function Editor() {
onError,
};
...
- function onChange(editorState: EditorState) {
+ function onChange(
Expand All @@ -526,7 +523,8 @@ And use it in our `Editor.tsx`:
editorState.read(() => {
const plainText = $getRoot().getTextContent();
@@ -44,6 +52,7 @@ export function Editor() {
...
ErrorBoundary={LexicalErrorBoundary}
/>
<HistoryPlugin />
Expand Down

0 comments on commit 7e153c1

Please sign in to comment.