UNPKG

@textbus/browser

Version:

Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.

36 lines (35 loc) 967 B
import { Commander, Controller, Keyboard, Selection } from '@textbus/core'; import { Parser } from '../dom-support/parser'; import { Caret } from './caret'; /** * Textbus PC 端输入实现 */ export declare class Input { private parser; private keyboard; private commander; private selection; private controller; private caret; onReady: Promise<void>; private container; private subscription; private doc; private textarea; private isFocus; private nativeFocus; private isSafari; private isMac; private isWindows; private isSougouPinYin; constructor(parser: Parser, keyboard: Keyboard, commander: Commander, selection: Selection, controller: Controller, caret: Caret); focus(): void; blur(): void; destroy(): void; private init; private handleDefaultActions; private handlePaste; private handleShortcut; private handleInput; private createEditableFrame; }