@kolkov/angular-editor
Version:
A simple native WYSIWYG editor for Angular 6+, 7+, 8+. Rich Text editor component for Angular.
35 lines (34 loc) • 962 B
TypeScript
export interface CustomClass {
name: string;
class: string;
tag?: string;
}
export interface Font {
name: string;
class: string;
}
export interface AngularEditorConfig {
editable?: boolean;
spellcheck?: boolean;
height?: 'auto' | string;
minHeight?: '0' | string;
maxHeight?: 'auto' | string;
width?: 'auto' | string;
minWidth?: '0' | string;
translate?: 'yes' | 'now' | string;
enableToolbar?: boolean;
showToolbar?: boolean;
placeholder?: string;
defaultParagraphSeparator?: string;
defaultFontName?: string;
defaultFontSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | string;
uploadUrl?: string;
uploadWithCredentials?: boolean;
fonts?: Font[];
customClasses?: CustomClass[];
sanitize?: boolean;
toolbarPosition?: 'top' | 'bottom';
outline?: boolean;
toolbarHiddenButtons?: string[][];
}
export declare const angularEditorConfig: AngularEditorConfig;