docs: improve react node view example

This commit is contained in:
Philipp Kühn
2021-04-08 09:02:27 +02:00
parent 0e713432ae
commit cd65bf8437
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import { NodeViewWrapper, NodeViewContent } from '@tiptap/react'
export default () => { export default () => {
return ( return (
<NodeViewWrapper className="react-component-with-content"> <NodeViewWrapper className="react-component-with-content">
<span className="label" contenteditable="false">React Component</span> <span className="label" contentEditable={false}>React Component</span>
<NodeViewContent className="content" /> <NodeViewContent className="content" />
</NodeViewWrapper> </NodeViewWrapper>

View File

@@ -78,7 +78,7 @@ import { NodeViewWrapper, NodeViewContent } from '@tiptap/react'
export default () => { export default () => {
return ( return (
<NodeViewWrapper className="react-component-with-content"> <NodeViewWrapper className="react-component-with-content">
<span className="label" contenteditable="false">React Component</span> <span className="label" contentEditable={false}>React Component</span>
<NodeViewContent className="content" /> <NodeViewContent className="content" />
</NodeViewWrapper> </NodeViewWrapper>