UNPKG

ng-cw-v12

Version:

Angular UI Component Library

31 lines (30 loc) 1.33 kB
import { EventEmitter, AfterViewInit } from '@angular/core'; import { IDomEditor, IEditorConfig, IToolbarConfig, Toolbar } from '@wangeditor/editor'; import * as i0 from "@angular/core"; export declare type NcModeType = 'default' | 'simple'; export declare class EditorComponent implements AfterViewInit { /** 编辑器模式 */ ncEditorMode: NcModeType; /** 工具栏模式 */ ncToolbarMode: NcModeType; /** 编辑器配置 */ ncEditorConfig: Partial<IEditorConfig>; /** 工具栏配置 */ ncToolbarConfig: Partial<IToolbarConfig>; /** 初始化内容 */ ncHtml: string; /** 编辑器容器id */ ncDomId: string; /** 编辑器加载完成事件 */ ncLoaded: EventEmitter<{ editor: IDomEditor; toolbar: Toolbar; }>; editor: IDomEditor; toolbar: Toolbar; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "nc-editor", never, { "ncEditorMode": "ncEditorMode"; "ncToolbarMode": "ncToolbarMode"; "ncEditorConfig": "ncEditorConfig"; "ncToolbarConfig": "ncToolbarConfig"; "ncHtml": "ncHtml"; "ncDomId": "ncDomId"; }, { "ncLoaded": "ncLoaded"; }, never, never>; }