feat: add vditor locally
This commit is contained in:
5
public/vditor/ts/toolbar/Both.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Both.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Both extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
4
public/vditor/ts/toolbar/Br.d.ts
vendored
Normal file
4
public/vditor/ts/toolbar/Br.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare class Br {
|
||||
element: HTMLElement;
|
||||
constructor();
|
||||
}
|
||||
6
public/vditor/ts/toolbar/CodeTheme.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/CodeTheme.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class CodeTheme extends MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
6
public/vditor/ts/toolbar/ContentTheme.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/ContentTheme.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class ContentTheme extends MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
6
public/vditor/ts/toolbar/Counter.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/Counter.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
export declare class Counter {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor);
|
||||
render(vditor: IVditor, mdText: string): void;
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Custom.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Custom.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Custom extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Devtools.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Devtools.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Devtools extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
4
public/vditor/ts/toolbar/Divider.d.ts
vendored
Normal file
4
public/vditor/ts/toolbar/Divider.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare class Divider {
|
||||
element: HTMLElement;
|
||||
constructor();
|
||||
}
|
||||
8
public/vditor/ts/toolbar/EditMode.d.ts
vendored
Normal file
8
public/vditor/ts/toolbar/EditMode.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare const setEditMode: (vditor: IVditor, type: string, event: Event | string) => void;
|
||||
export declare class EditMode extends MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
_bindEvent(vditor: IVditor, panelElement: HTMLElement, menuItem: IMenuItem): void;
|
||||
}
|
||||
7
public/vditor/ts/toolbar/Emoji.d.ts
vendored
Normal file
7
public/vditor/ts/toolbar/Emoji.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Emoji extends MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
private bindEvent;
|
||||
}
|
||||
6
public/vditor/ts/toolbar/Export.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/Export.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Export extends MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
6
public/vditor/ts/toolbar/Fullscreen.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/Fullscreen.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Fullscreen extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
_bindEvent(vditor: IVditor, menuItem: IMenuItem): void;
|
||||
}
|
||||
7
public/vditor/ts/toolbar/Headings.d.ts
vendored
Normal file
7
public/vditor/ts/toolbar/Headings.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Headings extends MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
_bindEvent(vditor: IVditor, panelElement: HTMLElement): void;
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Help.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Help.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Help extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Indent.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Indent.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Indent extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Info.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Info.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Info extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/InsertAfter.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/InsertAfter.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class InsertAfter extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/InsertBefore.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/InsertBefore.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class InsertBefore extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/MenuItem.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/MenuItem.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
export declare class MenuItem {
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Outdent.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Outdent.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Outdent extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Outline.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Outline.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Outline extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
6
public/vditor/ts/toolbar/Preview.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/Preview.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Preview extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
_bindEvent(vditor: IVditor): void;
|
||||
}
|
||||
6
public/vditor/ts/toolbar/Record.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/Record.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Record extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
_bindEvent(vditor: IVditor): void;
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Redo.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Redo.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Redo extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
5
public/vditor/ts/toolbar/Undo.d.ts
vendored
Normal file
5
public/vditor/ts/toolbar/Undo.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Undo extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
}
|
||||
6
public/vditor/ts/toolbar/Upload.d.ts
vendored
Normal file
6
public/vditor/ts/toolbar/Upload.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="./types" />
|
||||
import { MenuItem } from "./MenuItem";
|
||||
export declare class Upload extends MenuItem {
|
||||
constructor(vditor: IVditor, menuItem: IMenuItem);
|
||||
_bindEvent(vditor: IVditor): void;
|
||||
}
|
||||
10
public/vditor/ts/toolbar/index.d.ts
vendored
Normal file
10
public/vditor/ts/toolbar/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference types="./types" />
|
||||
export declare class Toolbar {
|
||||
elements: {
|
||||
[key: string]: HTMLElement;
|
||||
};
|
||||
element: HTMLElement;
|
||||
constructor(vditor: IVditor);
|
||||
updateConfig(vditor: IVditor, options: IToolbarConfig): void;
|
||||
private genItem;
|
||||
}
|
||||
20
public/vditor/ts/toolbar/setToolbar.d.ts
vendored
Normal file
20
public/vditor/ts/toolbar/setToolbar.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export declare const removeCurrentToolbar: (toolbar: {
|
||||
[key: string]: HTMLElement;
|
||||
}, names: string[]) => void;
|
||||
export declare const setCurrentToolbar: (toolbar: {
|
||||
[key: string]: HTMLElement;
|
||||
}, names: string[]) => void;
|
||||
export declare const enableToolbar: (toolbar: {
|
||||
[key: string]: HTMLElement;
|
||||
}, names: string[]) => void;
|
||||
export declare const disableToolbar: (toolbar: {
|
||||
[key: string]: HTMLElement;
|
||||
}, names: string[]) => void;
|
||||
export declare const hideToolbar: (toolbar: {
|
||||
[key: string]: HTMLElement;
|
||||
}, names: string[]) => void;
|
||||
export declare const showToolbar: (toolbar: {
|
||||
[key: string]: HTMLElement;
|
||||
}, names: string[]) => void;
|
||||
export declare const hidePanel: (vditor: IVditor, panels: string[], exceptElement?: HTMLElement) => void;
|
||||
export declare const toggleSubMenu: (vditor: IVditor, panelElement: HTMLElement, actionBtn: Element, level: number) => void;
|
||||
Reference in New Issue
Block a user