mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
Update ReactNodeViewRenderer.tsx
This commit is contained in:
parent
00cd74e2c6
commit
21913445bc
@ -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(),
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user