@textbus/editor
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
20 lines (19 loc) • 670 B
TypeScript
import { Observable } from '@tanbo/stream';
import { Starter } from '@textbus/core';
import { Viewer } from '@textbus/platform-browser';
import { EditorOptions } from './types';
import { Layout } from './layout';
/**
* 基于 Textbus 内核和 PC 浏览器中间层的富文本实现
*/
export declare class Editor extends Viewer {
/** 编辑器是否初始化完成可观察对象 */
onReady: Observable<Starter>;
/** 编辑器 UI 布局相关的 DOM 对象管理类 */
layout: Layout;
private host;
private readyEvent;
constructor(options?: EditorOptions);
mount(selector: string | HTMLElement): Promise<this>;
destroy(): void;
}