add node view playground

This commit is contained in:
Philipp Kühn
2020-11-18 22:50:07 +01:00
parent 8146dd0842
commit b8886fa408
8 changed files with 138 additions and 3 deletions

View File

@@ -130,6 +130,7 @@ export default class ExtensionManager {
getPos,
decorations,
HTMLAttributes,
extension,
})
}

View File

@@ -90,6 +90,7 @@ export type NodeViewRendererProps = {
getPos: (() => number) | boolean,
decorations: Decoration[],
HTMLAttributes: { [key: string]: any },
extension: Node,
}
export type NodeViewRenderer = (props: NodeViewRendererProps) => NodeView