Skip to content

Commit

Permalink
fix: typo edtior to editor (#2560)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentD authored Jun 29, 2022
1 parent 7ee3a52 commit f7748dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lexical/src/LexicalMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/lexical/src/LexicalNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion scripts/error-codes/codes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

2 comments on commit f7748dc

@vercel
Copy link

@vercel vercel bot commented on f7748dc Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website-new

lexical-git-main-fbopensource.vercel.app
lexical.dev
lexical-fbopensource.vercel.app
lexicaljs.org
www.lexical.dev
lexicaljs.com

@vercel
Copy link

@vercel vercel bot commented on f7748dc Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-fbopensource.vercel.app
lexical-playground-git-main-fbopensource.vercel.app
lexical-playground.vercel.app
playground.lexical.dev

Please sign in to comment.