UNPKG

@live-html-editor/browser

Version:

An ideal html-editor for development purposes. It has a NEAT output + capability to save directly from browser into your sources

45 lines (44 loc) 1.3 kB
import { CodeStyle } from "./BeautifyHtml"; /** * @author [S. Mahdi Mir-Ismaili](https://mirismaili.github.io) * Created on 1397/11/9 (2019/1/29). */ declare class EditorManager implements Options { serverUrl: string; codeStyle: CodeStyle; sourceFiles: SourceFile[]; private beautifier; private activeEditor; private lastActiveElement; private lastActiveEditor; private tools; private switchMode; private toolsContainer; private styles; private readonly editors; private idAttr; private readonly recordLastFocusedElement; config(options?: Options): void; private setListenersToToolsArea; start(): void; shutdown(): void; private checkLastActiveEditor; submit(): void; formatDoc(command: string, argument?: string | undefined): void; validateMode(editable: HTMLElement): boolean; setSourceMode(): void; setDocMode(): void; } export declare const editorManager: EditorManager; interface Options { serverUrl: string; codeStyle: CodeStyle; sourceFiles: SourceFile[]; } export declare const DEF_OPTIONS: Options; interface SourceFile { path: string; domPath: (index: string) => string; regexp: (index: string) => RegExp; } export {};