add typography extension

This commit is contained in:
Philipp Kühn
2020-11-01 00:28:46 +01:00
parent 4ce0eef6c0
commit 97831ea8e5
3 changed files with 56 additions and 1 deletions

View File

@@ -68,6 +68,7 @@
<script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
import Typography from '@tiptap/extension-typography'
export default {
components: {
@@ -82,7 +83,10 @@ export default {
mounted() {
this.editor = new Editor({
extensions: defaultExtensions(),
extensions: [
...defaultExtensions(),
Typography(),
],
content: `
<h2>
Hi there,