tiptap/packages/react/src/NodeViewWrapper.tsx

24 lines
371 B
TypeScript
Raw Normal View History

2021-03-14 23:30:06 +08:00
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>
)
}