mirror of
https://github.com/flarum/core.git
synced 2025-10-18 02:06:08 +02:00
Bundled output for commit 3537f76eab
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
32
js/dist-typings/common/utils/BasicEditorDriver.d.ts
vendored
Normal file
32
js/dist-typings/common/utils/BasicEditorDriver.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import EditorDriverInterface, { EditorDriverParams } from './EditorDriverInterface';
|
||||
import ItemList from './ItemList';
|
||||
export default class BasicEditorDriver implements EditorDriverInterface {
|
||||
el: HTMLTextAreaElement;
|
||||
constructor(dom: HTMLElement, params: EditorDriverParams);
|
||||
build(dom: HTMLElement, params: EditorDriverParams): void;
|
||||
keyHandlers(params: EditorDriverParams): ItemList;
|
||||
moveCursorTo(position: number): void;
|
||||
getSelectionRange(): Array<number>;
|
||||
getLastNChars(n: number): string;
|
||||
insertAtCursor(text: string): void;
|
||||
insertAt(pos: number, text: string): void;
|
||||
insertBetween(selectionStart: number, selectionEnd: number, text: string): void;
|
||||
replaceBeforeCursor(start: number, text: string): void;
|
||||
protected setSelectionRange(start: number, end: number): void;
|
||||
getCaretCoordinates(position: number): {
|
||||
top: number;
|
||||
left: number;
|
||||
};
|
||||
/**
|
||||
* Set the disabled status of the editor.
|
||||
*/
|
||||
disabled(disabled: boolean): void;
|
||||
/**
|
||||
* Focus on the editor.
|
||||
*/
|
||||
focus(): void;
|
||||
/**
|
||||
* Destroy the editor
|
||||
*/
|
||||
destroy(): void;
|
||||
}
|
Reference in New Issue
Block a user