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