/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ import type { CustomCommand, IDictionary, IPluginSystem, IStatusBar, IWorkPlace, Modes, IFileBrowser, IJodit, IUploader, ICreate, IStorage, CanPromise } from './types'; import { Config } from './config'; import { Observer, Plugin, Select } from './modules/'; import { ViewWithToolbar } from './core/view/view-with-toolbar'; export declare class Jodit extends ViewWithToolbar implements IJodit { className(): string; readonly isJodit: true; get text(): string; get value(): string; set value(html: string); get defaultTimeout(): number; static atom(object: T): T; static make(element: HTMLElement | string, options?: object): Jodit; static get defaultOptions(): Config; static fatMode: boolean; static plugins: IPluginSystem; static modules: IDictionary; static ns: IDictionary; static decorators: IDictionary; static instances: IDictionary; static lang: any; static core: { Plugin: typeof Plugin; }; private __defaultStyleDisplayKey; private __defaultClassesKey; private commands; private __selectionLocked; private __wasReadOnly; readonly storage: IStorage; readonly createInside: ICreate; editorIsActive: boolean; private setPlaceField; get element(): HTMLElement; get editor(): HTMLDivElement | HTMLBodyElement; set editor(editor: HTMLDivElement | HTMLBodyElement); get container(): HTMLDivElement; set container(container: HTMLDivElement); get workplace(): HTMLDivElement; get statusbar(): IStatusBar; get iframe(): HTMLIFrameElement | void; set iframe(iframe: HTMLIFrameElement | void); get observer(): Observer; get editorWindow(): Window; set editorWindow(win: Window); get ew(): this['editorWindow']; get editorDocument(): Document; get ed(): this['editorDocument']; get options(): Config; set options(opt: Config); readonly selection: Select; get s(): this['selection']; get uploader(): IUploader; get filebrowser(): IFileBrowser; private __mode; get mode(): Modes; set mode(mode: Modes); getNativeEditorValue(): string; setNativeEditorValue(value: string): void; getEditorValue(removeSelectionMarkers?: boolean): string; private __callChangeCount; setEditorValue(value?: string): void; getElementValue(): string; setElementValue(value?: string): void; registerCommand(commandNameOriginal: string, command: CustomCommand, options?: { stopPropagation: boolean; }): IJodit; registerHotkeyToCommand(hotkeys: string | string[], commandName: string, shouldStop?: boolean): void; execCommand(command: string, showUI?: boolean, value?: null | any): void; private execCustomCommands; lock(name?: string): boolean; unlock(): boolean; getMode(): Modes; isEditorMode(): boolean; getRealMode(): Modes; setMode(mode: number | string): void; toggleMode(): void; setDisabled(isDisabled: boolean): void; getDisabled(): boolean; setReadOnly(isReadOnly: boolean): void; getReadOnly(): boolean; beforeInitHook(): CanPromise; afterInitHook(): void; protected initOptions(options?: object): void; protected initOwners(): void; constructor(element: HTMLElement | string, options?: object); currentPlace: IWorkPlace; places: IWorkPlace[]; private elementToPlace; addPlace(source: HTMLElement | string, options?: object): void | Promise; protected addDisclaimer(elm: HTMLElement): void; setCurrentPlace(place: IWorkPlace): void; private initEditor; private createEditor; private attachEvents; private prepareWYSIWYGEditor; destruct(): void; }