refactoring

This commit is contained in:
Philipp Kühn
2020-04-10 22:59:09 +02:00
parent b08e77b1fe
commit 8da3b61d46

View File

@@ -18,17 +18,20 @@ import getSchemaTypeByName from './utils/getSchemaTypeByName'
import ExtensionManager from './ExtensionManager'
import Extension from './Extension'
import Node from './Node'
import Mark from './Mark'
import EventEmitter from './EventEmitter'
type EditorContent = string | JSON | null
export type Command = (next: Function, editor: Editor, ...args: any) => any
export interface CommandSpec {
[key: string]: Command
}
type EditorContent = string | JSON | null
interface Options {
content: EditorContent
extensions: (Extension | Node)[]
extensions: (Extension | Node | Mark)[]
injectCSS: Boolean
}