add useReactNodeView hook
This commit is contained in:
@@ -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'
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user