docs: improve react node view example
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user