Update ReactNodeViewRenderer.tsx

This commit is contained in:
Anton Liubushkin 2022-05-20 10:22:30 +03:00 committed by Dominik
parent 00cd74e2c6
commit 21913445bc

View File

@ -89,13 +89,13 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor, ReactNodeV
as = this.options.as
}
const className = this.options.className ? ` ${this.options.className}` : ''
const { className = '' } = this.options
this.renderer = new ReactRenderer(ReactNodeViewProvider, {
editor: this.editor,
props,
as,
className: `node-${this.node.type.name}` + className,
className: `node-${this.node.type.name} ${className}`.trim(),
})
}