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