0.2.34 • Published 6 months ago
@types/epiceditor v0.2.34
Installation
npm install --save @types/epiceditor
Summary
This package contains type definitions for EpicEditor (http://epiceditor.com/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/epiceditor.
index.d.ts
// Type definitions for EpicEditor 0.2
// Project: http://epiceditor.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface EpicEditorOptions {
container?: any;
textarea?: any;
basePath?: string | undefined;
clientSideStorage?: boolean | undefined;
localStorageName?: string | undefined;
useNativeFullsreen?: boolean | undefined;
parser?: any;
file?: {
name: string;
defaultContent: string;
autoSave: any;
} | undefined;
theme?: {
base: string;
preview: string;
editor: string;
} | undefined;
focusOnLoad?: boolean | undefined;
shortcut?: {
modifier: number;
fullscreen: number;
preview: number;
} | undefined;
string?: {
togglePreview: string;
toggleEdit: string;
toggleFullscreen: string;
} | undefined;
}
declare class EpicEditor {
constructor();
constructor(options: EpicEditorOptions);
load(callback?: Function): EpicEditor;
unload(callback?: Function): EpicEditor;
getElement(element: string): any;
is(state: string): boolean;
open(filename: string): any;
importFile(filename?: string, content?: string): void;
exportFile(filename?: string, type?: string): any;
rename(oldName: string, newName: string): void;
save(): void;
remove(filename: string): void;
getFiles(filename?: string): any;
on(event: string, handler: Function): void;
emit(event: string): void;
removeListener(event: string, handler?: Function): void;
preview(): void;
edit(): void;
enterFullscreen(): void;
exitFullscreen(): void;
reflow(type?: string): void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 12:01:10 GMT
- Dependencies: none
- Global values:
EpicEditor
Credits
These definitions were written by Boris Yankov.
0.2.34
6 months ago
0.2.33
7 months ago
0.2.32
8 months ago
0.2.31
3 years ago
0.2.30
4 years ago
0.2.29
8 years ago
0.2.28
8 years ago
0.2.27-alpha
8 years ago
0.2.26-alpha
8 years ago
0.2.25-alpha
8 years ago
0.2.24-alpha
8 years ago
0.2.23-alpha
8 years ago
0.2.22-alpha
8 years ago
0.2.21-alpha
8 years ago
0.2.16-alpha
8 years ago
0.2.15-alpha
8 years ago