@netless/app-quill
Version:
netless-app-quill
24 lines (23 loc) • 747 B
TypeScript
import type { NetlessApp } from '@netless/fastboard';
import { QuillEditor } from './QuillEditor';
import type { QuillOptions } from 'quill';
export interface QuillAppAttributes {
/**
* Placeholder text to display when the editor is empty
* @default ""
*/
placeholder?: string;
}
export interface QuillAppOptions {
/**
* Options for initializing a Quill instance
*/
options?: QuillOptions;
/**
* Upload the base64 image to the image server and return the image url
* @param base64Image
* @returns image url
*/
uploadBase64Image?: (base64Image: string) => Promise<string>;
}
export declare const NetlessAppQuill: NetlessApp<QuillAppAttributes, {}, QuillAppOptions, QuillEditor>;