move dropcursor and gapcursor to its own package

This commit is contained in:
Philipp Kühn
2020-11-01 00:16:28 +01:00
parent d810054492
commit 4ce0eef6c0
10 changed files with 268 additions and 165 deletions

View File

@@ -0,0 +1,18 @@
import { createExtension } from '@tiptap/core'
import { gapCursor } from 'prosemirror-gapcursor'
const Gapcursor = createExtension({
addProseMirrorPlugins() {
return [
gapCursor(),
]
},
})
export default Gapcursor
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Gapcursor: typeof Gapcursor,
}
}