lexical-vue
Version:
An extensible Vue 3 web text-editor based on Lexical.
28 lines (27 loc) • 1.11 kB
TypeScript
import * as __VLS_VINE from 'vue-vine/internals';
import type { EditorSetOptions, EditorState, LexicalCommand } from 'lexical';
interface LexicalTreeViewProps {
editorState: EditorState;
treeTypeButtonClassName?: string;
timeTravelButtonClassName?: string;
timeTravelPanelButtonClassName?: string;
timeTravelPanelClassName?: string;
timeTravelPanelSliderClassName?: string;
viewClassName?: string;
generateContent: (exportDOM: boolean) => Promise<string>;
setEditorState: (state: EditorState, options?: EditorSetOptions) => void;
setEditorReadOnly: (isReadonly: boolean) => void;
commandsLog?: ReadonlyArray<{
index: number;
} & LexicalCommand<unknown> & {
payload: unknown;
}>;
}
export declare function TreeViewCore(props: __VLS_VINE.VineComponentCommonProps & LexicalTreeViewProps, context: {
expose: __VLS_VINE.PickComponentExpose<typeof TreeViewCore>;
}): __VLS_VINE.VueVineComponent & {
exposed: (import("vue").ShallowUnwrapRef<{
preRef: Readonly<import("vue").ShallowRef<HTMLPreElement | null>>;
}>);
};
export {};