This commit is contained in:
Philipp Kühn
2021-04-06 23:00:03 +02:00
parent c83cd59df1
commit 92c2c81b8e
4 changed files with 11 additions and 3 deletions

View File

@@ -100,7 +100,10 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
return (
<>
<div ref={this.editorContentRef} />
<Portals renderers={this.state.renderers} />
{
// @ts-ignore
<Portals renderers={this.state.renderers} />
}
</>
)
}

View File

@@ -55,8 +55,12 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
}, [])
return (
// @ts-ignore
<ReactNodeViewContext.Provider value={{ onDragStart, isEditable }}>
<Component {...componentProps} />
{
// @ts-ignore
<Component {...componentProps} />
}
</ReactNodeViewContext.Provider>
)
}