@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
21 lines (20 loc) • 630 B
TypeScript
import { TipTapEditor } from "./TipTapEditor";
import { EditorMenuBar } from "./EditorMenuBar";
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
export interface ToolbarProperties<T> {
menubar?: EditorMenuBar<T>;
editor?: TipTapEditor;
content?: string;
onContentChanged?: (content: string) => void;
onBlur?: () => void;
editorId?: GuidValue;
}
export interface PastedToolbarProperties<T> extends ToolbarProperties<T> {
pastedContext: PastedContext;
}
export interface PastedContext {
text: string;
html: string;
from: number;
to?: number;
}