docs: update content

This commit is contained in:
Hans Pagel 2021-02-02 14:08:45 +01:00
parent 5b81deeeeb
commit 22ed56769c

View File

@ -145,6 +145,17 @@ Node.create({
}) })
``` ```
For some cases where you want features that arent 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 #### Atom
Nodes with `atom: true` arent directly editable and should be treated as a single unit. Its not so likely to use that in a editor context, but this is how it would look like: Nodes with `atom: true` arent directly editable and should be treated as a single unit. Its not so likely to use that in a editor context, but this is how it would look like: