@cairn214/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.
20 lines (19 loc) • 723 B
TypeScript
import { default as html2canvas, Options as Html2CanvasOptions } from 'html2canvas';
import { default as Toolbar } from 'quill/modules/toolbar';
export type ScreenShotOptions = Partial<Html2CanvasOptions> & {
Html2Canvas: typeof html2canvas;
beforeCreateCanvas: () => void | Promise<void>;
beforeCreateImage: (canvas: HTMLCanvasElement) => HTMLCanvasElement | string | Promise<HTMLCanvasElement | string>;
};
interface ScreenShotOptionsInQuill {
quill: {
options: {
screenshot: Partial<ScreenShotOptions>;
};
};
}
export declare function Screenshot(this: Toolbar & ScreenShotOptionsInQuill): void;
export declare namespace Screenshot {
var toolName: string;
}
export {};