UNPKG

@zodiac-ui/editor

Version:

A rich text editor for Angular based on `@atlaskit/editor-core`.

18 lines (17 loc) 760 B
import { ElementRef, OnChanges, OnInit, SimpleChange, SimpleChanges } from "@angular/core"; import { EditorService } from "./editor.service"; import { EditorEvent } from "./interfaces"; import { EditorTool } from "./editor-toolbar/interfaces"; import { Observable } from "rxjs"; export declare function hasChanges(change: SimpleChange): boolean; export declare class EditorComponent implements OnInit, OnChanges { state: any; viewChange: Observable<EditorEvent>; stateChange: Observable<EditorEvent>; private editorRef; private editor; constructor(editor: EditorService, editorRef: ElementRef<HTMLElement>); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; runTool(command: EditorTool): void; }