refactoring

This commit is contained in:
Philipp Kühn
2020-11-16 21:42:35 +01:00
parent f17b5f977c
commit 13a314e123
34 changed files with 94 additions and 109 deletions

View File

@@ -1,5 +1,5 @@
import { TextSelection } from 'prosemirror-state'
import { Command } from '../Editor'
import { Command } from '../types'
export default (content: string, emitUpdate: Boolean = false, parseOptions = {}): Command => ({ tr, editor, dispatch }) => {
const { createDocument } = editor