feat: render wrapper element for inline node views as span, fix #242

This commit is contained in:
Philipp Kühn
2021-04-04 21:43:48 +02:00
parent 5faf1ab10f
commit bdb5d72495
2 changed files with 6 additions and 3 deletions

View File

@@ -66,6 +66,9 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
this.renderer = new ReactRenderer(ReactNodeViewProvider, {
editor: this.editor,
props,
as: this.node.isInline
? 'span'
: 'div'
})
}