add basic history extension

This commit is contained in:
Philipp Kühn
2020-03-06 11:02:35 +01:00
parent cb6a723d57
commit f7b62be436
7 changed files with 85 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import Editor from '@tiptap/core'
import Document from '@tiptap/document-extension'
import Paragraph from '@tiptap/paragraph-extension'
import Text from '@tiptap/text-extension'
import History from '@tiptap/history-extension'
export default {
mounted() {
@@ -19,10 +20,11 @@ export default {
new Document(),
new Paragraph(),
new Text(),
new History(),
],
})
// .focus('end')
// .insertText('foo')
// .undo()
// .insertHTML('<p>hey</p>')
// .registerCommand('lol', (next) => {
// console.log('lol')