feat: add vditor locally

This commit is contained in:
merlin
2025-11-12 14:39:23 +08:00
parent 16e8fd2d65
commit 4e21c62e26
532 changed files with 43947 additions and 38 deletions

1
public/vditor/ts/ir/expandMarker.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export declare const expandMarker: (range: Range, vditor: IVditor) => void;

View File

@@ -0,0 +1 @@
export declare const highlightToolbarIR: (vditor: IVditor) => void;

13
public/vditor/ts/ir/index.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
/// <reference types="./types" />
declare class IR {
range: Range;
element: HTMLPreElement;
processTimeoutId: number;
hlToolbarTimeoutId: number;
composingLock: boolean;
preventInput: boolean;
constructor(vditor: IVditor);
private copy;
private bindEvent;
}
export { IR };

1
public/vditor/ts/ir/input.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export declare const input: (vditor: IVditor, range: Range, ignoreSpace?: boolean, event?: InputEvent) => void;

8
public/vditor/ts/ir/process.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
export declare const processHint: (vditor: IVditor) => void;
export declare const processAfterRender: (vditor: IVditor, options?: {
enableAddUndoStack: boolean;
enableHint: boolean;
enableInput: boolean;
}) => void;
export declare const processHeading: (vditor: IVditor, value: string) => void;
export declare const processToolbar: (vditor: IVditor, actionBtn: Element, prefix: string, suffix: string) => void;

View File

@@ -0,0 +1 @@
export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean;