mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
169 lines
10 KiB
JSON
169 lines
10 KiB
JSON
{
|
|
"0": "getLatest() on clone node",
|
|
"1": "TODO",
|
|
"2": "Node %s and selection point do not match.",
|
|
"3": "createOffsetModel: could not find node by key",
|
|
"4": "Expected node %s to have closest block element node.",
|
|
"5": "createNodeFromParse: type \"%s\" + not found",
|
|
"6": "Incorrect node type received in importJSON for %s",
|
|
"7": "LexicalAutoLinkPlugin: AutoLinkNode, TableCellNode or TableRowNode not registered on editor",
|
|
"8": "LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext",
|
|
"9": "Unexpected parent context null on a nested composer",
|
|
"10": "TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor",
|
|
"11": "Expected grid selection",
|
|
"12": "Expected table cell",
|
|
"13": "Cannot use method in read-only mode.",
|
|
"14": "One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.",
|
|
"15": "Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read().",
|
|
"16": "Unable to find an active editor. This method can only be used synchronously during the callback of editor.update().",
|
|
"17": "parseEditorState: type \"%s\" + not found",
|
|
"18": "LexicalNode: Node %s does not implement .importJSON().",
|
|
"19": "updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.",
|
|
"20": "Point.getNode: node not found",
|
|
"21": "getNodes: expected to find AnchorNode",
|
|
"22": "getNodes: expected to find FocusNode",
|
|
"23": "getNodes: expected to find GridNode",
|
|
"24": "getNodes: expected to find GridRowNode",
|
|
"25": "getNodes: expected to find GridCellNode",
|
|
"26": "insertText: first node is not a text node",
|
|
"27": "insertNode: topLevelElement is root node",
|
|
"28": "insertNodes: cannot insert a non-element into a root node",
|
|
"29": "insertNodes: cloned parent clone is not an element",
|
|
"30": "registeredNode: Type %s not found",
|
|
"31": "Node is not a child of its parent",
|
|
"32": "$setSelection called on frozen selection object. Ensure selection is cloned before passing in.",
|
|
"33": "Type %s not in registeredNodes",
|
|
"34": "Reconciliation: could not find DOM element for node key \"${key}\"",
|
|
"35": "Listener for type \"command\" requires a \"priority\".",
|
|
"36": "registerCommand: Command %s not found in command map",
|
|
"37": "Node %s has not been registered. Ensure node has been passed to createEditor.",
|
|
"38": "setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.",
|
|
"39": "insertAfter: list node is not parent of list item node",
|
|
"40": "A ListItemNode must have a ListNode for a parent.",
|
|
"41": "Expected Grid Cell in Grid Selection",
|
|
"42": "$mergeGridNodesStrategy: Expected Grid insertion.",
|
|
"43": "$mergeGridNodesStrategy: Expected selection to be inside of a Grid.",
|
|
"44": "$getListItemValue: list node is not parent of list item node",
|
|
"45": "Expected node %s to have a first child.",
|
|
"46": "append: attemtping to append self",
|
|
"47": "decorate: base method not extended",
|
|
"48": "updateDOM: prevInnerDOM is null or undefined",
|
|
"49": "updateDOM: innerDOM is null or undefined",
|
|
"50": "mergeWithSibling: sibling must be a previous or next sibling",
|
|
"51": "getTopLevelElementOrThrow: root nodes are not top level elements",
|
|
"52": "remove: cannot be called on root nodes",
|
|
"53": "replace: cannot be called on root nodes",
|
|
"54": "insertBefore: cannot be called on root nodes",
|
|
"55": "insertAfter: cannot be called on root nodes",
|
|
"56": "rootNode.append: Only element or decorator nodes can be appended to the root node",
|
|
"57": "useCharacterLimit: OverflowNode not registered on editor",
|
|
"58": "LexicalNode: Node %s does not implement .exportJSON().",
|
|
"59": "LexicalNode: Node %s is an element but .exportJSON() does not have a children array.",
|
|
"60": "createNode: node does not exist in nodeMap",
|
|
"61": "reconcileNode: prevNode or nextNode does not exist in nodeMap",
|
|
"62": "reconcileNode: parentDOM is null",
|
|
"63": "Expected node with key %s to exist but it's not in the nodeMap.",
|
|
"64": "LexicalNode: Node %s does not implement .getType().",
|
|
"65": "LexicalNode: Node %s does not implement .clone().",
|
|
"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 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",
|
|
"73": "Create node: Attempted to create node %s that was not previously registered on the editor. You can use register your custom nodes.",
|
|
"74": "Create node: Type %s in node %s does not match registered node %s with the same type",
|
|
"75": "Reconciliation: could not find DOM element for node key %s",
|
|
"76": "append: attempting to append self",
|
|
"77": "LexicalAutoLinkPlugin: AutoLinkNode not registered on editor",
|
|
"78": "window object not found",
|
|
"79": "MarkdownShortcuts: missing dependency for transformer. Ensure node dependency is included in editor initial config.",
|
|
"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: 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: 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",
|
|
"96": "Expected node %s to have a last child.",
|
|
"97": "$initializeNode failed. Ensure node has been registered to the editor. You can do this by passing the node class via the \"nodes\" array in the editor config.",
|
|
"98": "$initializeNode failed. Ensure replacement node is a subclass of the original node.",
|
|
"99": "Only element or decorator nodes can be inserted in to the root node",
|
|
"100": "splice: sibling not found",
|
|
"101": "createChildrenArray: node does not exist in nodeMap",
|
|
"102": "Can not call $splitNode() on root element",
|
|
"103": "Expected GridSelection anchor to be (or a child of) GridCellNode",
|
|
"104": "Expected GridSelection focus to be (or a child of) GridCellNode",
|
|
"105": "Expected anchorCell to have a parent GridRowNode",
|
|
"106": "Expected tableNode to have a parent GridNode",
|
|
"107": "Expected GridCellNode parent to be a GridRowNode",
|
|
"108": "Expected GridNode children to be GridRowNode",
|
|
"109": "Expected GridRowNode children to be GridCellNode",
|
|
"110": "Anchor not found in Grid",
|
|
"111": "Focus not found in Grid",
|
|
"112": "Stack.length > 0; can't be undefined",
|
|
"113": "Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update.",
|
|
"114": "Expected to find a parent GridCellNode",
|
|
"115": "Expected GridCellNode to have a parent GridRowNode",
|
|
"116": "Expected GridRowNode to have a parent GridNode",
|
|
"117": "Invalid indent value.",
|
|
"118": "Expected a RangeSelection or GridSelection",
|
|
"119": "focusEndRow is not a GridRowNode",
|
|
"120": "Expected firstTable child to be a row",
|
|
"121": "Expected row nextSibling to be a row",
|
|
"122": "Expected nextRowNode not to be null",
|
|
"123": "Expected GridNode childAtIndex(%s) to be RowNode",
|
|
"124": "Unexpected empty cell",
|
|
"125": "Expected row next sibling to be a row",
|
|
"126": "TabNode does not support setTextContent",
|
|
"127": "TabNode does not support setDetail",
|
|
"128": "TabNode does not support setMode",
|
|
"129": "Expected parentElement of Text not to be null",
|
|
"130": "LexicalNode: Node %s does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.",
|
|
"131": "Expected to find LexicalNode from Table Cell DOMNode",
|
|
"132": "Expected TextNode createDOM to always return a HTMLElement",
|
|
"133": "Children of a root must be ElementNode",
|
|
"134": "Expected RangeSelection after insertParagraph",
|
|
"135": "Expected 'firstBlock' to be an ElementNode",
|
|
"136": "Expected ancestor to be an ElementNode",
|
|
"137": "LexicalNode: Node %s does not implement .isInline().",
|
|
"138": "Children of root nodes must be elements",
|
|
"139": "includeChildren should only be true for ElementNodes",
|
|
"140": "insertRangeAfter: lastToInsert must be a later sibling of firstToInsert",
|
|
"141": "Point.getNode() must return TextNode when type is text",
|
|
"142": "Anchor node must be a TextNode",
|
|
"143": "insertList: anchor should be defined",
|
|
"144": "node is not a ListItemNode",
|
|
"145": "focusEndRow is not a TableRowNode",
|
|
"146": "Expected GridNode children to be TableRowNode",
|
|
"147": "Expected TableRowNode children to be TableCellNode",
|
|
"148": "Expected to find a parent TableCellNode",
|
|
"149": "Expected TableCellNode to have a parent TableRowNode",
|
|
"150": "Expected TableRowNode to have a parent GridNode",
|
|
"151": "Expected TableSelection focus to be an ElementNode",
|
|
"152": "Expected TableSelection anchor to be (or a child of) TableCellNode",
|
|
"153": "getCellRect: expected to find AnchorNode",
|
|
"154": "Expected TableSelection focus to be (or a child of) TableCellNode",
|
|
"155": "getCellRect: expected to find focusCellNode",
|
|
"156": "Expected anchorCell to have a parent TableRowNode",
|
|
"157": "Expected tableNode to have a parent TableNode",
|
|
"158": "Expected gridParent to have a parent",
|
|
"159": "Expected focusCellParent to have a parent",
|
|
"160": "Expected TableCellNode parent to be a TableRowNode",
|
|
"161": "Unexpected dirty selection to be null",
|
|
"162": "Root element not registered",
|
|
"163": "node is not a ListNode",
|
|
"164": "Root element count less than 0",
|
|
"165": "%s should not be undefined. You may want to check splitOffsets passed to the splitText."
|
|
}
|