UNPKG

@opentiny/fluent-editor

Version:

A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.

18 lines (16 loc) 542 B
import { ICounterOption } from '../config/types'; import { default as FluentEditor } from '../fluent-editor'; export default class Counter { quill: FluentEditor; container: HTMLDivElement; options: ICounterOption; constructor(quill: FluentEditor, options: ICounterOption); resolveOptions(options: ICounterOption): { format: string; unit: string; template: any; count: number; } & ICounterOption; renderCount: () => void; getContentLength(format: any): number; }