add useReactNodeView hook

This commit is contained in:
Philipp Kühn
2021-03-14 20:40:40 +01:00
parent 109bff0892
commit 380d27fe86
6 changed files with 75 additions and 13 deletions

View File

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