rename demo, add more content
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<pre>{{ html }}</pre>
|
||||
<pre>{{ otherHtml }}</pre>
|
||||
</div>
|
||||
<pre>{{ html }}</pre>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { generateHTML } from '@tiptap/core'
|
||||
import { generateHTML as generateHTMLWithoutEditor } from '@tiptap/html'
|
||||
import { generateHTML } from '@tiptap/html'
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
@@ -26,7 +22,6 @@ export default {
|
||||
}],
|
||||
},
|
||||
html: '',
|
||||
otherHtml: '',
|
||||
}
|
||||
},
|
||||
|
||||
@@ -36,12 +31,6 @@ export default {
|
||||
Paragraph(),
|
||||
Text(),
|
||||
])
|
||||
|
||||
this.otherHtml = generateHTMLWithoutEditor(this.json, [
|
||||
Document(),
|
||||
Paragraph(),
|
||||
Text(),
|
||||
])
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user