mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 08:30:33 +08:00
fix: Typo in the collaboration nodes (#5702)
This commit is contained in:
@ -87,7 +87,7 @@ export class CollabDecoratorNode {
|
||||
const lexicalNode = this.getNode();
|
||||
invariant(
|
||||
lexicalNode !== null,
|
||||
'syncPropertiesFromYjs: cound not find decorator node',
|
||||
'syncPropertiesFromYjs: could not find decorator node',
|
||||
);
|
||||
const xmlElem = this._xmlElem;
|
||||
syncPropertiesFromYjs(binding, xmlElem, lexicalNode, keysChanged);
|
||||
|
@ -99,7 +99,7 @@ export class CollabElementNode {
|
||||
const collabElementNode = this._parent;
|
||||
invariant(
|
||||
collabElementNode !== null,
|
||||
'getOffset: cound not find collab element node',
|
||||
'getOffset: could not find collab element node',
|
||||
);
|
||||
|
||||
return collabElementNode.getChildOffset(this);
|
||||
@ -112,7 +112,7 @@ export class CollabElementNode {
|
||||
const lexicalNode = this.getNode();
|
||||
invariant(
|
||||
lexicalNode !== null,
|
||||
'syncPropertiesFromYjs: cound not find element node',
|
||||
'syncPropertiesFromYjs: could not find element node',
|
||||
);
|
||||
syncPropertiesFromYjs(binding, this._xmlText, lexicalNode, keysChanged);
|
||||
}
|
||||
@ -232,7 +232,7 @@ export class CollabElementNode {
|
||||
const lexicalNode = this.getNode();
|
||||
invariant(
|
||||
lexicalNode !== null,
|
||||
'syncChildrenFromYjs: cound not find element node',
|
||||
'syncChildrenFromYjs: could not find element node',
|
||||
);
|
||||
|
||||
const key = lexicalNode.__key;
|
||||
|
@ -147,7 +147,7 @@ export class CollabTextNode {
|
||||
const lexicalNode = this.getNode();
|
||||
invariant(
|
||||
lexicalNode !== null,
|
||||
'syncPropertiesAndTextFromYjs: cound not find decorator node',
|
||||
'syncPropertiesAndTextFromYjs: could not find decorator node',
|
||||
);
|
||||
|
||||
syncPropertiesFromYjs(binding, this._map, lexicalNode, keysChanged);
|
||||
|
@ -82,16 +82,16 @@
|
||||
"80": "Create node: Attempted to create node %s that was not configured to be used on the editor.",
|
||||
"81": "createBinding: doc is null or undefined",
|
||||
"82": "Expected text, element, or decorator event",
|
||||
"83": "syncPropertiesFromYjs: cound not find decorator node",
|
||||
"84": "syncPropertiesAndTextFromYjs: cound not find decorator node",
|
||||
"83": "syncPropertiesFromYjs: could not find decorator node",
|
||||
"84": "syncPropertiesAndTextFromYjs: could not find decorator node",
|
||||
"85": "could not find node by key",
|
||||
"86": "Expected text, element, decorator, or linebreak node",
|
||||
"87": "Expected shared type to include type attribute",
|
||||
"88": "Node %s is not registered",
|
||||
"89": "Expected parent to be a collab element node",
|
||||
"90": "getOffset: cound not find collab element node",
|
||||
"91": "syncPropertiesFromYjs: cound not find element node",
|
||||
"92": "syncChildrenFromYjs: cound not find element node",
|
||||
"90": "getOffset: could not find collab element node",
|
||||
"91": "syncPropertiesFromYjs: could not find element node",
|
||||
"92": "syncChildrenFromYjs: could not find element node",
|
||||
"93": "syncChildrenFromYjs: expected text, element, decorator, or linebreak collab node",
|
||||
"94": "splice: could not find collab element node",
|
||||
"95": "splice: expected offset to be greater than zero",
|
||||
|
Reference in New Issue
Block a user