diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 3393c3d..e75bbb6 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -150,7 +150,6 @@ const Editor = props => { React.cloneElement(widget, { annotation : currentAnnotation, readOnly : props.readOnly, - config: props.config, env: props.env, onAppendBody, onUpdateBody, diff --git a/src/editor/widgets/WrappedWidget.jsx b/src/editor/widgets/WrappedWidget.jsx index 6bce4c6..19ca452 100644 --- a/src/editor/widgets/WrappedWidget.jsx +++ b/src/editor/widgets/WrappedWidget.jsx @@ -15,6 +15,7 @@ export default class WrappedWidget extends Component { const widgetEl = this.props.widget({ annotation: next.annotation, readOnly: next.readOnly, + ...this.props.config, onAppendBody: body => next.onAppendBody(body), onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated), onRemoveBody: body => next.onRemoveBody(body),