feat: add vditor locally
This commit is contained in:
1
public/vditor/ts/upload/getElement.d.ts
vendored
Normal file
1
public/vditor/ts/upload/getElement.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const getElement: (vditor: IVditor) => HTMLPreElement;
|
||||
8
public/vditor/ts/upload/index.d.ts
vendored
Normal file
8
public/vditor/ts/upload/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare class Upload {
|
||||
element: HTMLElement;
|
||||
isUploading: boolean;
|
||||
range: Range;
|
||||
constructor();
|
||||
}
|
||||
declare const uploadFiles: (vditor: IVditor, files: FileList | DataTransferItemList | File[], element?: HTMLInputElement) => Promise<void>;
|
||||
export { Upload, uploadFiles };
|
||||
1
public/vditor/ts/upload/setHeaders.d.ts
vendored
Normal file
1
public/vditor/ts/upload/setHeaders.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const setHeaders: (vditor: IVditor, xhr: XMLHttpRequest) => void;
|
||||
Reference in New Issue
Block a user