From 13ad3acf632cc25a4f0c801804188b4c20db1f9f Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Sat, 6 Feb 2021 23:25:33 +0100 Subject: [PATCH] add tableRole and allowGapCursor to the documentation --- docs/src/docPages/api/schema.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/src/docPages/api/schema.md b/docs/src/docPages/api/schema.md index ce0f80e7..5b5212da 100644 --- a/docs/src/docPages/api/schema.md +++ b/docs/src/docPages/api/schema.md @@ -221,6 +221,26 @@ Node.create({ }) ``` +#### Allow gap cursor +TODO + +> If it’s true, gap cursor are allowed everywhere in that node, if it’s false they are never allowed. + +```js +Node.create({ + allowGapCursor: false, +}) +``` + +#### Table roles +TODO + +```js +Node.create({ + tableRole: 'cell', +}) +``` + ### The mark schema #### Inclusive If you don’t want the mark to be active when the cursor is at its end, set inclusive to `false`. For example, that’s how it’s configured for [`Link`](/api/marks/link) marks: