EditorState
Type
Reference
Properties
nodes
Record<NodeId, Node>A map of all the Nodes in the editorevents
Objectselected
NodeIdhovered
NodeIddragged
NodeId
options
Objectresolver
Map<String, React.ComponentType>A map of User Components that will be used in the editorenabled?
booleanOptional. If set to false, all editing capabilities will be disabledindicator?
Record<"success" | "error", String>Optional. The colour to use for the drop indicator. The colour set in 'success' will be used when the indicator shows a droppable location; otherwise the colour set in 'error' will be used.onRender?
React.ComponentType<{element: React.ReactElement}>Optional. Specify a custom component to render every User Element in the editor.onNodesChange?
() => voidOptional. A callback method when the values of any of the nodes in the state changes
Note:
options
can be specified as props in the<Editor />