add tableRole and allowGapCursor to the documentation

This commit is contained in:
Hans Pagel 2021-02-06 23:25:33 +01:00
parent 851aaa2996
commit 13ad3acf63

View File

@ -221,6 +221,26 @@ Node.create({
})
```
#### Allow gap cursor
TODO
> If its true, gap cursor are allowed everywhere in that node, if its false they are never allowed.
```js
Node.create({
allowGapCursor: false,
})
```
#### Table roles
TODO
```js
Node.create({
tableRole: 'cell',
})
```
### The mark schema
#### Inclusive
If you dont want the mark to be active when the cursor is at its end, set inclusive to `false`. For example, thats how its configured for [`Link`](/api/marks/link) marks: