From 7c4202e3b17b263741511691bd65fb7684ca9a43 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 9 Mar 2021 22:14:23 +0100 Subject: [PATCH] docs: update content --- .../src/demos/Guide/NodeViews/VueComponentContent/index.js | 2 +- docs/src/docPages/guide/node-views.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/demos/Guide/NodeViews/VueComponentContent/index.js b/docs/src/demos/Guide/NodeViews/VueComponentContent/index.js index 8d71f443..4db1c458 100644 --- a/docs/src/demos/Guide/NodeViews/VueComponentContent/index.js +++ b/docs/src/demos/Guide/NodeViews/VueComponentContent/index.js @@ -7,7 +7,7 @@ export default Node.create({ group: 'block', - content: 'block+', + content: 'inline*', addAttributes() { return { diff --git a/docs/src/docPages/guide/node-views.md b/docs/src/docPages/guide/node-views.md index 0b599f54..a71a4be7 100644 --- a/docs/src/docPages/guide/node-views.md +++ b/docs/src/docPages/guide/node-views.md @@ -6,6 +6,7 @@ Node views are the best thing since sliced bread, at least if you are a fan of customization (and bread). With node views you can add interactive nodes to your editor content. That can literally be everything. If you can write it in JavaScript, you can use it in your editor. ## Different types of node views +TODO ### Editable content ```html @@ -54,7 +55,7 @@ export default Node.create({ return ({ editor, node, getPos, HTMLAttributes, decorations, extension }) => { const dom = document.createElement('div') - dom.innerHTML = 'I’m a node view' + dom.innerHTML = 'Hello, I’m a node view!' return { dom, @@ -230,14 +231,14 @@ renderHTML({ HTMLAttributes }) { ## Examples TODO -### Drag handles + ## Reference