mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 23:59:25 +08:00
add node view examples (wip)
This commit is contained in:
parent
996c29bcf7
commit
1c43bc89f9
@ -6,10 +6,41 @@
|
||||
|
||||
## Simple
|
||||
|
||||
```html
|
||||
<div class="Prosemirror" contenteditable="true">
|
||||
<p>text</p>
|
||||
<node-view>text</node-view>
|
||||
<p>text</p>
|
||||
</div>
|
||||
```
|
||||
|
||||
## Without content
|
||||
|
||||
```html
|
||||
<div class="Prosemirror" contenteditable="true">
|
||||
<p>text</p>
|
||||
<node-view contenteditable="false">text</node-view>
|
||||
<p>text</p>
|
||||
</div>
|
||||
```
|
||||
|
||||
## Advanced node views with content
|
||||
|
||||
```html
|
||||
<div class="Prosemirror" contenteditable="true">
|
||||
<p>text</p>
|
||||
<node-view>
|
||||
<div>
|
||||
non-editable text
|
||||
</div>
|
||||
<div>
|
||||
editable text
|
||||
</div>
|
||||
</node-view>
|
||||
<p>text</p>
|
||||
</div>
|
||||
```
|
||||
|
||||
<!--
|
||||
## Node views with plain JavaScript
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user