ngx-quill
Version:
An angular (>= v2) component for the easy use of the QuillJS richt text editor.
48 lines (47 loc) • 1.28 kB
TypeScript
import { InjectionToken } from '@angular/core';
export declare type QuillToolbarConfig = Array<Array<string | {
indent?: string;
list?: string;
direction?: string;
header?: number | Array<boolean | number>;
color?: string[];
background?: string[];
align?: string[];
script?: string;
font?: string[];
size?: Array<boolean | string>;
}>>;
export interface QuillModules {
[key: string]: any;
clipboard?: {
mathers?: any[];
matchVisual?: boolean;
} | boolean;
history?: {
delay?: number;
maxStack?: number;
userOnly?: boolean;
} | boolean;
keyboard?: {
bindings?: any;
} | boolean;
syntax?: boolean;
toolbar?: QuillToolbarConfig | string | {
container?: string | QuillToolbarConfig;
handlers?: {
[key: string]: any;
};
} | boolean;
}
export interface QuillConfig {
bounds?: HTMLElement | string;
debug?: 'error' | 'warn' | 'log' | false;
formats?: any;
modules?: QuillModules;
placeholder?: string;
readOnly?: boolean;
scrollingContainer?: HTMLElement | string | null;
theme?: string;
trackChanges?: 'user' | 'all';
}
export declare const QUILL_CONFIG_TOKEN: InjectionToken<QuillConfig>;