add some extensions

This commit is contained in:
Philipp Kühn
2020-03-05 20:30:58 +01:00
parent aff52325a2
commit 6e85098741
10 changed files with 78 additions and 33 deletions

View File

@@ -6,12 +6,18 @@
<script>
import Editor from '@tiptap/core'
import Doc from '@tiptap/document-extension'
import Paragraph from '@tiptap/paragraph-extension'
export default {
mounted() {
window.editor = new Editor({
element: this.$refs.editor,
content: '<p>foo</p>',
extensions: [
new Doc(),
new Paragraph(),
],
})
// .focus('end')
// .insertText('foo')