add basic react nodeviewrenderer

This commit is contained in:
Philipp Kühn
2021-03-14 16:30:06 +01:00
parent bc60a91904
commit 5e9a0d4225
8 changed files with 118 additions and 73 deletions

View File

@@ -0,0 +1,23 @@
import React from 'react'
export const NodeViewWrapper: React.FC = props => {
// TODO
const onDragStart = () => {
console.log('drag start')
}
return (
<div
data-node-view-wrapper=""
// contentEditable={false}
style={{
whiteSpace: 'normal'
}}
onDragStart={onDragStart}
>
{props.children}
</div>
)
}