jodit
Version:
Jodit is awesome and usefully wysiwyg editor with filebrowser
28 lines (20 loc) • 718 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import { IDestructible, IInitable } from './types';
export interface ISourceEditor extends IDestructible, IInitable {
getValue(): string;
setValue(raw: string): void;
insertRaw(raw: string): void;
getSelectionEnd(): number;
getSelectionStart(): number;
setSelectionRange(start: number, end: number): void;
setPlaceHolder(title: string): void;
focus(): void;
setReadOnly(isReadOnly: boolean): void;
selectAll(): void;
isReady: boolean;
onReadyAlways(callback: Function): void;
}