@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.
29 lines (28 loc) • 970 B
TypeScript
import { Parchment as TypeParchment } from 'quill';
import { default as TypeEmbed } from 'quill/blots/embed';
declare const Embed: typeof TypeEmbed;
export type ImageValue = string | {
src: string;
align?: string;
height?: number;
width?: number;
};
export declare class CustomImage extends Embed {
static blotName: string;
static tagName: string;
static ID_SEED: number;
static allowInvalidUrl: boolean;
domNode: HTMLElement;
static setOptions(allowInvalidUrl: boolean): void;
static create(value: ImageValue): HTMLElement;
static formats(domNode: HTMLElement): {};
static match(url: string): boolean;
static register(): void;
static sanitize(url: string): string;
static value(domNode: HTMLElement): any;
format(name: string, value: any): void;
unWrap(): void;
wrap(name: string, value?: any): TypeParchment.Parent;
wrap(wrapper: TypeParchment.Parent): TypeParchment.Parent;
}
export {};