mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Support block types in more SelectionHelpers (#580)
This commit is contained in:

committed by
acywatson

parent
493a964feb
commit
f41bc6fcb1
@ -1,43 +1,39 @@
|
||||
{
|
||||
"0": "Selection block node not yet implemented.",
|
||||
"1": "getNodesInRange: node is not a block node",
|
||||
"2": "getNodesInRange: child is not inside parent",
|
||||
"3": "formatText: firstNode/lastNode not a text node",
|
||||
"4": "insertNodes: lastChild not a text node",
|
||||
"5": "insertText: firstNode not a a text node",
|
||||
"6": "updateDOM: prevInnerDOM is null or undefined",
|
||||
"7": "updateDOM: innerDOM is null or undefined",
|
||||
"8": "setFormat: can only be used on non-immutable nodes",
|
||||
"9": "setTextContent: can only be used on non-immutable text nodes",
|
||||
"10": "spliceText: can only be used on non-immutable text nodes",
|
||||
"11": "spliceText: TODO? validate nodes have keys in a more generic way",
|
||||
"12": "spliceText: selection not found",
|
||||
"13": "splitText: can only be used on non-immutable text nodes",
|
||||
"14": "decorate: base method not extended",
|
||||
"15": "Editor.update() cannot be used within a text node transform.",
|
||||
"16": "Cannot use method in read-only mode.",
|
||||
"17": "Unable to find an active view model. View methods or node methods can only be used synchronously during the callback of editor.update() or viewModel.read().",
|
||||
"18": "Unable to find an active editor. View methods or node methods can only be used synchronously during the callback of editor.update() or viewModel.read().",
|
||||
"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": "resolveNonLineBreakOrInertNode: resolved node not a text node",
|
||||
"22": "OutlineNode: Node type %s does not implement deserialize().",
|
||||
"23": "OutlineNode: Node type %s does not implement .clone().",
|
||||
"24": "Expected node %s to have a parent.",
|
||||
"25": "Expected node %s to have a parent block.",
|
||||
"26": "Expected node %s to have a top parent block.",
|
||||
"27": "getNodesBetween: ancestor is null",
|
||||
"28": "getLatest: node not found",
|
||||
"29": "createDOM: base method not extended",
|
||||
"30": "updateDOM: base method not extended",
|
||||
"31": "setFlags: can only be used on non-immutable nodes",
|
||||
"32": "selectNext: found invalid sibling",
|
||||
"33": "Expected node with key %s to exist but it's not in the nodeMap.",
|
||||
"34": "createNodeFromParse: type \"%s\" + not found",
|
||||
"35": "createNode: node does not exist in nodeMap",
|
||||
"36": "reconcileNode: prevNode or nextNode does not exist in nodeMap",
|
||||
"37": "reconcileNode: parentDOM is null",
|
||||
"38": "storeDOMWithNodeKey: key was null",
|
||||
"39": "Reconciliation: could not find DOM element for node key \"${key}\"",
|
||||
"40": "setStyle: can only be used on non-immutable nodes"
|
||||
"0": "getNodesInRange: node is not a block node",
|
||||
"1": "getNodesInRange: child is not inside parent",
|
||||
"2": "insertNodes: lastChild not a text node",
|
||||
"3": "insertText: first node is not a text node",
|
||||
"4": "updateDOM: prevInnerDOM is null or undefined",
|
||||
"5": "updateDOM: innerDOM is null or undefined",
|
||||
"6": "setFormat: can only be used on non-immutable nodes",
|
||||
"7": "setStyle: can only be used on non-immutable nodes",
|
||||
"8": "setTextContent: can only be used on non-immutable text nodes",
|
||||
"9": "spliceText: can only be used on non-immutable text nodes",
|
||||
"10": "spliceText: selection not found",
|
||||
"11": "splitText: can only be used on non-immutable text nodes",
|
||||
"12": "decorate: base method not extended",
|
||||
"13": "Point.getNode: node not found",
|
||||
"14": "resolveNonLineBreakOrInertNode: resolved node not a text node",
|
||||
"15": "OutlineNode: Node type %s does not implement deserialize().",
|
||||
"16": "OutlineNode: Node type %s does not implement .clone().",
|
||||
"17": "Expected node %s to have a parent.",
|
||||
"18": "Expected node %s to have a parent block.",
|
||||
"19": "Expected node %s to have a top parent block.",
|
||||
"20": "getNodesBetween: ancestor is null",
|
||||
"21": "getLatest: node not found",
|
||||
"22": "createDOM: base method not extended",
|
||||
"23": "updateDOM: base method not extended",
|
||||
"24": "setFlags: can only be used on non-immutable nodes",
|
||||
"25": "Expected node with key %s to exist but it's not in the nodeMap.",
|
||||
"26": "createNodeFromParse: type \"%s\" + not found",
|
||||
"27": "Editor.update() cannot be used within a text node transform.",
|
||||
"28": "Cannot use method in read-only mode.",
|
||||
"29": "Unable to find an active view model. View methods or node methods can only be used synchronously during the callback of editor.update() or viewModel.read().",
|
||||
"30": "Unable to find an active editor. View methods or node methods can only be used synchronously during the callback of editor.update() or viewModel.read().",
|
||||
"31": "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.",
|
||||
"32": "createNode: node does not exist in nodeMap",
|
||||
"33": "reconcileNode: prevNode or nextNode does not exist in nodeMap",
|
||||
"34": "reconcileNode: parentDOM is null",
|
||||
"35": "storeDOMWithNodeKey: key was null",
|
||||
"36": "Reconciliation: could not find DOM element for node key \"${key}\""
|
||||
}
|
||||
|
Reference in New Issue
Block a user