mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 08:47:50 +08:00
24 lines
371 B
TypeScript
24 lines
371 B
TypeScript
|
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>
|
||
|
)
|
||
|
|
||
|
}
|