fix #789 async/await babel runtime generator error, use regenerator-runtime

This commit is contained in:
Hans Pagel
2020-08-11 11:21:52 +02:00
parent e3058f7cfa
commit 1b7c977c47
6 changed files with 4 additions and 5 deletions

View File

@@ -30,6 +30,7 @@
"prosemirror-transform": "^1.2.7",
"prosemirror-utils": "^0.9.6",
"prosemirror-view": "^1.15.2",
"regenerator-runtime": "^0.13.7",
"tiptap": "^1.29.4",
"tiptap-commands": "^1.14.4"
},

View File

@@ -1,6 +1,7 @@
import { Plugin, PluginKey } from 'prosemirror-state'
import { Decoration, DecorationSet } from 'prosemirror-view'
import { insertText } from 'tiptap-commands'
import 'regenerator-runtime/runtime'
// Create a matcher that matches when a specific character is typed. Useful for @mentions and #tags.
function triggerCharacter({