From e44f404e28c04992a1b355895c9f2d13c055cfef Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Mon, 12 Oct 2020 09:51:05 +0200 Subject: [PATCH] Bugfix --- src/editor/Editor.jsx | 1 - src/editor/widgets/WrappedWidget.jsx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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),