Reference Source
import BasicEditorDriver from 'flarum/common/utils/BasicEditorDriver'
public class | source

BasicEditorDriver

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

el: *

Method Summary

Public Methods
public

build(dom: undefined, params: undefined)

public

Destroy the editor

public

disabled(disabled: undefined)

Set the disabled status of the editor.

public

focus()

Focus on the editor.

public

getCaretCoordinates(position: undefined): {"top": *, "left": *}

public
public
public
public
public

insertBetween(selectionStart: undefined, selectionEnd: undefined, text: undefined)

public

keyHandlers(params: undefined): *

public

moveCursorTo(position: undefined)

public
public

Public Constructors

public constructor() source

Public Members

public el: * source

Public Methods

public build(dom: undefined, params: undefined) source

Params:

NameTypeAttributeDescription
dom undefined
params undefined

public destroy() source

Destroy the editor

public disabled(disabled: undefined) source

Set the disabled status of the editor.

Params:

NameTypeAttributeDescription
disabled undefined

public focus() source

Focus on the editor.

public getCaretCoordinates(position: undefined): {"top": *, "left": *} source

Params:

NameTypeAttributeDescription
position undefined

Return:

{"top": *, "left": *}

public getLastNChars(n: undefined): * source

Params:

NameTypeAttributeDescription
n undefined

Return:

*

public getSelectionRange(): undefined[] source

Return:

undefined[]

public insertAt(pos: undefined, text: undefined) source

Params:

NameTypeAttributeDescription
pos undefined
text undefined

public insertAtCursor(text: undefined) source

Params:

NameTypeAttributeDescription
text undefined

public insertBetween(selectionStart: undefined, selectionEnd: undefined, text: undefined) source

Params:

NameTypeAttributeDescription
selectionStart undefined
selectionEnd undefined
text undefined

public keyHandlers(params: undefined): * source

Params:

NameTypeAttributeDescription
params undefined

Return:

*

public moveCursorTo(position: undefined) source

Params:

NameTypeAttributeDescription
position undefined

public replaceBeforeCursor(start: undefined, text: undefined) source

Params:

NameTypeAttributeDescription
start undefined
text undefined

public setSelectionRange(start: undefined, end: undefined) source

Params:

NameTypeAttributeDescription
start undefined
end undefined