add basic support for components

This commit is contained in:
Philipp Kühn
2020-04-24 09:32:37 +02:00
parent c2bd2b21fa
commit 3470a7be1c
7 changed files with 68 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import { Node } from '@tiptap/core'
import { NodeSpec } from 'prosemirror-model'
import ParagraphComponent from './paragraph.vue'
export default class Paragraph extends Node {
@@ -11,6 +12,7 @@ export default class Paragraph extends Node {
group: 'block',
parseDOM: [{ tag: 'p' }],
toDOM: () => ['p', 0],
// toVue: ParagraphComponent,
}
}

View File

@@ -0,0 +1,9 @@
<template>
<p ref="content"></p>
</template>
<script>
export default {
}
</script>