fix extension manager

This commit is contained in:
Philipp Kühn
2020-09-09 10:58:10 +02:00
parent bbccfa43e8
commit a812dd47be
22 changed files with 1099 additions and 1061 deletions

View File

@@ -12,6 +12,9 @@ import removeElement from './utils/removeElement'
import getSchemaTypeByName from './utils/getSchemaTypeByName'
import ExtensionManager from './ExtensionManager'
import EventEmitter from './EventEmitter'
import Extension from './Extension'
import Node from './Node'
import Mark from './Mark'
import ComponentRenderer from './ComponentRenderer'
import defaultPlugins from './plugins'
import * as commands from './commands'
@@ -27,7 +30,7 @@ type EditorContent = string | JSON | null
interface EditorOptions {
element: Element,
content: EditorContent,
extensions: Function[],
extensions: (Extension | Node | Mark)[],
injectCSS: boolean,
autoFocus: 'start' | 'end' | number | boolean | null,
editable: boolean,