docs: update content

This commit is contained in:
Hans Pagel
2021-03-15 09:47:05 +01:00
parent 3ac8b38a42
commit 15461aeea4

View File

@@ -209,6 +209,8 @@ You dont need to add those `class` attributes, feel free to remove them or pa
Keep in mind that this content is rendered by tiptap. That means you need to tell what kind of content is allowed, for example with `content: 'inline*'` in your node extension (thats what we use in the above example). Keep in mind that this content is rendered by tiptap. That means you need to tell what kind of content is allowed, for example with `content: 'inline*'` in your node extension (thats what we use in the above example).
The `NodeViewWrapper` and `NodeViewContent` components render a `<div>` HTML tag (`<span>` for inline nodes), but you can change that. For example `<node-view-content as="p">` should render a paragraph. One limitation though: That tag must not change during runtime.
### All available props ### All available props
For advanced use cases, we pass a few more props to the component. Here is the full list of what you can expect: For advanced use cases, we pass a few more props to the component. Here is the full list of what you can expect: