BasicEditorDriver
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
el: * |
Method Summary
Public Methods | ||
public |
build(dom: HTMLElement, params: EditorDriverParams) |
|
public |
destroy() Destroy the editor |
|
public |
Set the disabled status of the editor. |
|
public |
focus() Focus on the editor. |
|
public |
getCaretCoordinates(position: number): {"top": *, "left": *} |
|
public |
getLastNChars(n: number): string |
|
public |
|
|
public |
|
|
public |
insertAtCursor(text: string) |
|
public |
insertBetween(start: number, end: number, text: string) |
|
public |
moveCursorTo(position: number) |
|
public |
replaceBeforeCursor(start: number, text: string) |
|
public |
setSelectionRange(start: number, end: number) |
|
public |
|
Public Constructors
public constructor() source
Public Members
public el: * source
Public Methods
public build(dom: HTMLElement, params: EditorDriverParams) source
Params:
Name | Type | Attribute | Description |
dom | HTMLElement | ||
params | EditorDriverParams |
public disabled(disabled: boolean) source
Set the disabled status of the editor.
Params:
Name | Type | Attribute | Description |
disabled | boolean |
public getCaretCoordinates(position: number): {"top": *, "left": *} source
Params:
Name | Type | Attribute | Description |
position | number |
Return:
{"top": *, "left": *} |