This commit is contained in:
Rainer Simon 2020-10-12 09:51:05 +02:00
parent 7e7b7125b0
commit e44f404e28
2 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,6 @@ const Editor = props => {
React.cloneElement(widget, { React.cloneElement(widget, {
annotation : currentAnnotation, annotation : currentAnnotation,
readOnly : props.readOnly, readOnly : props.readOnly,
config: props.config,
env: props.env, env: props.env,
onAppendBody, onAppendBody,
onUpdateBody, onUpdateBody,

View File

@ -15,6 +15,7 @@ export default class WrappedWidget extends Component {
const widgetEl = this.props.widget({ const widgetEl = this.props.widget({
annotation: next.annotation, annotation: next.annotation,
readOnly: next.readOnly, readOnly: next.readOnly,
...this.props.config,
onAppendBody: body => next.onAppendBody(body), onAppendBody: body => next.onAppendBody(body),
onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated), onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated),
onRemoveBody: body => next.onRemoveBody(body), onRemoveBody: body => next.onRemoveBody(body),