From 22ed56769cce7741f72abce0bba0eef4d2cbdfd9 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 2 Feb 2021 14:08:45 +0100 Subject: [PATCH] docs: update content --- docs/src/docPages/api/schema.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/src/docPages/api/schema.md b/docs/src/docPages/api/schema.md index 1e0a26df..ce0f80e7 100644 --- a/docs/src/docPages/api/schema.md +++ b/docs/src/docPages/api/schema.md @@ -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: