add new syntax to all extensions
This commit is contained in:
@@ -3,11 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
|
||||
import { Editor, EditorContent } from '@tiptap/vue-starter-kit'
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -23,12 +19,7 @@ export default {
|
||||
mounted() {
|
||||
this.editor = new Editor({
|
||||
content: '<p>I’m running tiptap with Vue.js. 🎉</p>',
|
||||
// extensions: defaultExtensions(),
|
||||
extensions: [
|
||||
new Document(),
|
||||
new Paragraph(),
|
||||
new Text(),
|
||||
],
|
||||
extensions: defaultExtensions(),
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user