EditorState
Type
Reference
Properties
nodesRecord<NodeId, Node>A map of all the Nodes in the editoreventsObjectselectedSet<NodeId>hoveredSet<NodeId>draggedSet<NodeId>
optionsObjectresolverMap<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 disabledindicatorObjectsuccessStringColor to use when the user hovers over a droppable locationerrorStringColor to use when the usre hovers over a non-droppable locationtransitionstringCSS transition to use for when the Indicator moves aroundthicknessnumberThickness of the Indicator
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:
optionscan be specified as props in the<Editor />