add basic heading extension

This commit is contained in:
Philipp Kühn
2020-04-21 22:16:26 +02:00
parent 27c8a46e40
commit a057755e42
4 changed files with 77 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ import Bold from '@tiptap/extension-bold'
import Italic from '@tiptap/extension-italic'
import Code from '@tiptap/extension-code'
import CodeBlock from '@tiptap/extension-codeblock'
import Heading from '@tiptap/extension-heading'
export default {
components: {
@@ -46,7 +47,7 @@ export default {
mounted() {
this.editor = new Editor({
content: '<p>This editor is based on Prosemirror, fully extendable and renderless. You can easily add custom nodes as Vue components.</p>',
content: '<h2>Hey there!</h2><p>This editor is based on Prosemirror, fully extendable and renderless. You can easily add custom nodes as Vue components.</p>',
extensions: [
new Document(),
new Paragraph(),
@@ -56,6 +57,7 @@ export default {
new Bold(),
new Italic(),
new Code(),
new Heading(),
],
})
},