rename package folders

This commit is contained in:
Philipp Kühn
2020-03-30 10:42:59 +02:00
parent 18c5164af9
commit 14421a11fa
35 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
import { Editor } from '../Editor'
declare module '../Editor' {
interface Editor {
insertText(value: string): Editor,
}
}
export default function insertText(next: Function, editor: Editor, value: string): void {
const { view, state } = editor
const transaction = state.tr.insertText(value)
view.dispatch(transaction)
next()
}