feat: add className option to ReactRenderer, see #2166

This commit is contained in:
Philipp Kühn
2021-11-18 09:58:38 +01:00
parent abe932384c
commit c9dc1e1ec3
2 changed files with 13 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor, ReactNodeV
as: this.node.isInline
? 'span'
: 'div',
className: `node-${this.node.type.name}`,
})
}