feat: add className option to ReactRenderer, see #2166
This commit is contained in:
@@ -87,6 +87,7 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor, ReactNodeV
|
||||
as: this.node.isInline
|
||||
? 'span'
|
||||
: 'div',
|
||||
className: `node-${this.node.type.name}`,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user