UNPKG

@kolkov/angular-editor

Version:

A simple native WYSIWYG editor for Angular 13+. Rich Text editor component for Angular.

40 lines (39 loc) 1.24 kB
import { UploadResponse } from './angular-editor.service'; import { HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; 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; upload?: (file: File) => Observable<HttpEvent<UploadResponse>>; uploadWithCredentials?: boolean; fonts?: Font[]; customClasses?: CustomClass[]; sanitize?: boolean; toolbarPosition?: 'top' | 'bottom'; outline?: boolean; toolbarHiddenButtons?: string[][]; rawPaste?: boolean; } export declare const angularEditorConfig: AngularEditorConfig;