docs: update content
This commit is contained in:
@@ -116,7 +116,7 @@ Keep in mind that this content is rendered by tiptap. That means you need to tel
|
||||
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
|
||||
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 props you can expect:
|
||||
|
||||
```html
|
||||
<template>
|
||||
@@ -170,3 +170,21 @@ export default {
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
If you just want to have all (and to have TypeScript support) you can import all props like that:
|
||||
|
||||
```js
|
||||
// Vue 3
|
||||
import { defineComponent } from 'vue'
|
||||
import { nodeViewProps } from '@tiptap/vue-3'
|
||||
export default defineComponent({
|
||||
props: nodeViewProps,
|
||||
})
|
||||
|
||||
// Vue 2
|
||||
import Vue from 'vue'
|
||||
import { nodeViewProps } from '@tiptap/vue-2'
|
||||
export default Vue.extend({
|
||||
props: nodeViewProps,
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user