@zodiac-ui/editor
Version:
A rich text editor for Angular based on `@atlaskit/editor-core`.
17 lines (16 loc) • 497 B
TypeScript
import { EditorTool } from "./editor-toolbar/interfaces";
import { Observable } from "rxjs";
import { EditorView } from "prosemirror-view";
import { EditorState } from "prosemirror-state";
export interface Editor {
view: EditorView;
state: EditorState;
viewChange: Observable<any>;
stateChange: Observable<any>;
runTool(tool: EditorTool): any;
}
export interface EditorEvent {
view: EditorView;
state: EditorState;
runTool(tool: EditorTool): any;
}