why
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
"prosemirror-view": "^1.18.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^17.0.3",
|
||||
"@types/react-dom": "^17.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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} />
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user