a few minor improvements to the content

This commit is contained in:
Hans Pagel
2020-09-24 15:58:40 +02:00
parent 299ca72f3e
commit 2848b814b6
4 changed files with 18 additions and 33 deletions

View File

@@ -11,30 +11,26 @@ import Text from '@tiptap/extension-text'
export default {
data() {
return {
doc: {
json: {
type: 'document',
content: [{
type: 'paragraph',
attrs: {
align: 'left',
},
content: [{
type: 'text',
text: 'Example Text',
}],
}],
},
html: '',
}
},
computed: {
html() {
return generateHtml(this.doc, [
Document(),
Paragraph(),
Text(),
])
},
mounted() {
this.html = generateHtml(this.json, [
Document(),
Paragraph(),
Text(),
])
},
}
</script>