UNPKG

roosterjs

Version:

A simple facade for all roosterjs code

11 lines (10 loc) 738 B
import type { ContentModelDocument, EditorPlugin, IEditor } from 'roosterjs-content-model-types'; /** * Create a new Editor instance using the given options * @param contentDiv The html div element needed for creating the editor * @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are * PastePlugin, EditPlugin, user don't need to add those. * @param initialModel The initial content model to show in editor. It can't be removed by undo, user need to manually remove it if needed. * @returns The Editor instance */ export declare function createEditor(contentDiv: HTMLDivElement, additionalPlugins?: EditorPlugin[], initialModel?: ContentModelDocument): IEditor;