Minor tweak: allowing configurable widgets
This commit is contained in:
parent
4c5e102095
commit
a8befdcb19
|
@ -138,6 +138,7 @@ const Editor = props => {
|
||||||
<div className="inner">
|
<div className="inner">
|
||||||
{React.Children.map(props.children, child =>
|
{React.Children.map(props.children, child =>
|
||||||
React.cloneElement(child, {
|
React.cloneElement(child, {
|
||||||
|
...child.props,
|
||||||
annotation : currentAnnotation,
|
annotation : currentAnnotation,
|
||||||
readOnly : props.readOnly,
|
readOnly : props.readOnly,
|
||||||
onAppendBody : onAppendBody,
|
onAppendBody : onAppendBody,
|
||||||
|
|
Loading…
Reference in New Issue