diff --git a/packages/lexical/src/LexicalMutations.ts b/packages/lexical/src/LexicalMutations.ts index 18f9e089ff4..c2d995aa796 100644 --- a/packages/lexical/src/LexicalMutations.ts +++ b/packages/lexical/src/LexicalMutations.ts @@ -127,7 +127,7 @@ export function $flushMutations( const selection = $getSelection() || getLastSelection(editor); const badDOMTargets = new Map(); const rootElement = editor.getRootElement(); - // We use the current edtior state, as that reflects what is + // We use the current editor state, as that reflects what is // actually "on screen". const currentEditorState = editor._editorState; let shouldRevertSelection = false; diff --git a/packages/lexical/src/LexicalNode.ts b/packages/lexical/src/LexicalNode.ts index 8b1479cd43b..9cd501ffcfa 100644 --- a/packages/lexical/src/LexicalNode.ts +++ b/packages/lexical/src/LexicalNode.ts @@ -527,7 +527,7 @@ export class LexicalNode { if (latest === null) { invariant( false, - 'Lexical node does not exist in active edtior state. Avoid using the same node references between nested closures from editor.read/editor.update.', + 'Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editor.read/editor.update.', ); } return latest; diff --git a/scripts/error-codes/codes.json b/scripts/error-codes/codes.json index 6ee36d81d5c..6210f718c41 100644 --- a/scripts/error-codes/codes.json +++ b/scripts/error-codes/codes.json @@ -68,7 +68,7 @@ "66": "Expected node %s to have a parent.", "67": "Expected node %s to have a top parent element.", "68": "getNodesBetween: ancestor is null", - "69": "Lexical node does not exist in active edtior state. Avoid using the same node references between nested closures from editor.read/editor.update.", + "69": "Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editor.read/editor.update.", "70": "createDOM: base method not extended", "71": "updateDOM: base method not extended", "72": "exportJSON: base method not extended",