tiptap/packages/react/src/NodeViewContent.tsx

19 lines
273 B
TypeScript
Raw Normal View History

2021-03-14 23:30:06 +08:00
import React from 'react'
export const NodeViewContent: React.FC = props => {
// TODO
const isEditable = true
return (
<div
data-node-view-content=""
contentEditable={isEditable}
style={{
whiteSpace: 'pre-wrap'
}}
/>
)
}