add basic react nodeviewrenderer
This commit is contained in:
23
packages/react/src/NodeViewWrapper.tsx
Normal file
23
packages/react/src/NodeViewWrapper.tsx
Normal 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>
|
||||
)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user