Rendering
Props
{
attributes: Object,
children: Object,
editor: Editor,
isSelected: Boolean,
isFocused: Boolean,
node: Node,
parent: Node,
readOnly: Boolean,
}attributes
attributesreturn <p {...props.attributes}>{props.children}</p>return (
<figure {...props.attributes}>
<img src={...} />
</figure>
)children
childreneditor
editorisSelected
isSelectedisFocused
isFocusednode
nodeparent
parentreadOnly
readOnlyLast updated