mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
docs: update content
This commit is contained in:
parent
5b81deeeeb
commit
22ed56769c
@ -145,6 +145,17 @@ Node.create({
|
||||
})
|
||||
```
|
||||
|
||||
For some cases where you want features that aren’t available in marks, for example a node view, try if an inline node would work:
|
||||
|
||||
```js
|
||||
Node.create({
|
||||
name: 'customInlineNode',
|
||||
group: 'inline',
|
||||
inline: true,
|
||||
content: 'text*',
|
||||
})
|
||||
```
|
||||
|
||||
#### Atom
|
||||
Nodes with `atom: true` aren’t directly editable and should be treated as a single unit. It’s not so likely to use that in a editor context, but this is how it would look like:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user