quill-image-compress
Version:
A Quill rich text editor Module which compresses images uploaded to the editor
15 lines (14 loc) • 413 B
TypeScript
import Quill from "quill";
export type OptionsObject = {
validation?: boolean;
debug?: boolean;
suppressErrorLogging?: boolean;
maxWidth?: number;
maxHeight?: number;
imageType?: string;
keepImageTypes?: string[];
ignoreImageTypes?: string[];
quality?: number;
handleOnPaste?: boolean;
insertIntoEditor?: (base64URL: string, imageBlob: Blob, editor: Quill) => void;
};