ISelect

types.ISelect

Implemented by

sel

Readonly sel: null | Selection

Defined in

src/types/select.d.ts#25


range

Readonly range: Range

Defined in

src/types/select.d.ts#26


isInsideArea

Readonly isInsideArea: boolean

Defined in

src/types/select.d.ts#27


html

Readonly html: string

Defined in

src/types/select.d.ts#28


hasMarkers

Readonly hasMarkers: boolean

Defined in

src/types/select.d.ts#44


markers

Readonly markers: HTMLElement[]

Defined in

src/types/select.d.ts#45

createRange

createRange(select?): Range

Parameters

Name Type
select? boolean

Returns

Range

Defined in

src/types/select.d.ts#30


clear

clear(): void

Returns

void

Defined in

src/types/select.d.ts#31


current

current(checkChild?): Nullable<Node>

Parameters

Name Type
checkChild? boolean

Returns

Nullable<Node>

Defined in

src/types/select.d.ts#33


focus

focus(options?): boolean

Parameters

Name Type
options? FocusOptions

Returns

boolean

Defined in

src/types/select.d.ts#34


isFocused

isFocused(): boolean

Returns

boolean

Defined in

src/types/select.d.ts#35


remove

remove(): void

Returns

void

Defined in

src/types/select.d.ts#37


removeNode

removeNode(node): void

Parameters

Name Type
node Node

Returns

void

Defined in

src/types/select.d.ts#38


fakes

fakes(): [] | [Node] | [Node, Node]

Returns

[] | [Node] | [Node, Node]

Defined in

src/types/select.d.ts#40


restoreFakes

restoreFakes(fakes): void

Parameters

Name Type
fakes [] | [Node] | [Node, Node]

Returns

void

Defined in

src/types/select.d.ts#41


save

save(silent?): MarkerInfo[]

Parameters

Name Type
silent? boolean

Returns

MarkerInfo[]

Defined in

src/types/select.d.ts#42


restore

restore(): void

Returns

void

Defined in

src/types/select.d.ts#43


removeMarkers

removeMarkers(): void

Returns

void

Defined in

src/types/select.d.ts#46


marker

marker(atStart?, range?): HTMLSpanElement

Parameters

Name Type
atStart? boolean
range? Range

Returns

HTMLSpanElement

Defined in

src/types/select.d.ts#47


insertNode

insertNode(node, insertCursorAfter?, fireChange?): void

Parameters

Name Type
node Node
insertCursorAfter? boolean
fireChange? boolean

Returns

void

Defined in

src/types/select.d.ts#49


insertHTML

insertHTML(html, insertCursorAfter?): void

Parameters

Name Type
html string | number | Node
insertCursorAfter? boolean

Returns

void

Defined in

src/types/select.d.ts#54


insertImage

insertImage(url, styles?, defaultWidth?): void

Parameters

Name Type
url string | HTMLImageElement
styles? Nullable<IDictionary<string>>
defaultWidth? Nullable<string | number>

Returns

void

Defined in

src/types/select.d.ts#55


isCollapsed

isCollapsed(): boolean

Returns

boolean

Defined in

src/types/select.d.ts#61


cursorInTheEdge

cursorInTheEdge(start, parentBlock, fake?): Nullable<boolean>

Parameters

Name Type
start boolean
parentBlock HTMLElement
fake? null | Node

Returns

Nullable<boolean>

Defined in

src/types/select.d.ts#62


cursorOnTheLeft

cursorOnTheLeft(parentBlock, fake?): Nullable<boolean>

Parameters

Name Type
parentBlock HTMLElement
fake? null | Node

Returns

Nullable<boolean>

Defined in

src/types/select.d.ts#67


cursorOnTheRight

cursorOnTheRight(parentBlock, fake?): Nullable<boolean>

Parameters

Name Type
parentBlock HTMLElement
fake? null | Node

Returns

Nullable<boolean>

Defined in

src/types/select.d.ts#71


expandSelection

expandSelection(): ISelect

Returns

ISelect

Defined in

src/types/select.d.ts#76


insertCursorAtPoint

insertCursorAtPoint(x, y): boolean

Parameters

Name Type
x number
y number

Returns

boolean

Defined in

src/types/select.d.ts#77


setCursorAfter

setCursorAfter(node): Nullable<Text>

Parameters

Name Type
node Node

Returns

Nullable<Text>

Defined in

src/types/select.d.ts#78


setCursorBefore

setCursorBefore(node): Nullable<Text>

Parameters

Name Type
node Node

Returns

Nullable<Text>

Defined in

src/types/select.d.ts#79


setCursorIn

setCursorIn(node, inStart?): Node

Parameters

Name Type
node Node
inStart? boolean

Returns

Node

Defined in

src/types/select.d.ts#80


selectRange

selectRange(range, focus?): ISelect

Parameters

Name Type
range Range
focus? boolean

Returns

ISelect

Defined in

src/types/select.d.ts#81


select

select(node, inward?): ISelect

Parameters

Name Type
node Node | HTMLElement | HTMLTableCellElement | HTMLTableElement
inward? boolean

Returns

ISelect

Defined in

src/types/select.d.ts#82


wrapInTagGen

wrapInTagGen(fakes?): Generator<HTMLElement, undefined, unknown>

Parameters

Name Type
fakes? Node[]

Returns

Generator<HTMLElement, undefined, unknown>

Defined in

src/types/select.d.ts#87


wrapInTag

wrapInTag(tagOrCallback): HTMLElement[]

Parameters

Name Type
tagOrCallback HTMLTagNames | (font: HTMLElement) => any

Returns

HTMLElement[]

Defined in

src/types/select.d.ts#88


commitStyle

commitStyle(options): void

Parameters

Name Type
options IStyleOptions

Returns

void

Defined in

src/types/select.d.ts#92


eachSelection

eachSelection(callback): void

Parameters

Name Type
callback (current: Node) => void

Returns

void

Defined in

src/types/select.d.ts#94


splitSelection

splitSelection(currentBox, edge?): Nullable<Element>

Parameters

Name Type
currentBox HTMLElement
edge? Node

Returns

Nullable<Element>

Defined in

jodit/src/types/select.d.ts:95