ISelect
- Implemented by
- sel
- range
- isInsideArea
- html
- hasMarkers
- markers
- createRange
- clear
- current
- focus
- isFocused
- remove
- removeNode
- fakes
- restoreFakes
- save
- restore
- removeMarkers
- marker
- insertNode
- insertHTML
- insertImage
- isCollapsed
- cursorInTheEdge
- cursorOnTheLeft
- cursorOnTheRight
- expandSelection
- insertCursorAtPoint
- setCursorAfter
- setCursorBefore
- setCursorIn
- selectRange
- select
- wrapInTagGen
- wrapInTag
- commitStyle
- eachSelection
- splitSelection
types.ISelect
Implemented by
sel
Readonly
sel: null
| Selection
Defined in
range
Readonly
range: Range
Defined in
isInsideArea
Readonly
isInsideArea: boolean
Defined in
html
Readonly
html: string
Defined in
hasMarkers
Readonly
hasMarkers: boolean
Defined in
markers
Readonly
markers: HTMLElement
[]
Defined in
createRange
createRange(select?
): Range
Parameters
Name | Type |
---|---|
select? |
boolean |
Returns
Defined in
clear
clear(): void
Returns
void
Defined in
current
current(checkChild?
): Nullable
<Node
>
Parameters
Name | Type |
---|---|
checkChild? |
boolean |
Returns
Defined in
focus
focus(options?
): boolean
Parameters
Name | Type |
---|---|
options? |
FocusOptions |
Returns
boolean
Defined in
isFocused
isFocused(): boolean
Returns
boolean
Defined in
remove
remove(): void
Returns
void
Defined in
removeNode
removeNode(node
): void
Parameters
Name | Type |
---|---|
node |
Node |
Returns
void
Defined in
fakes
fakes(): [] | [Node
] | [Node
, Node
]
Returns
Defined in
restoreFakes
restoreFakes(fakes
): void
Parameters
Name | Type |
---|---|
fakes |
[] | [Node ] | [Node , Node ] |
Returns
void
Defined in
save
save(silent?
): MarkerInfo
[]
Parameters
Name | Type |
---|---|
silent? |
boolean |
Returns
Defined in
restore
restore(): void
Returns
void
Defined in
removeMarkers
removeMarkers(): void
Returns
void
Defined in
marker
marker(atStart?
, range?
): HTMLSpanElement
Parameters
Name | Type |
---|---|
atStart? |
boolean |
range? |
Range |
Returns
Defined in
insertNode
insertNode(node
, insertCursorAfter?
, fireChange?
): void
Parameters
Name | Type |
---|---|
node |
Node |
insertCursorAfter? |
boolean |
fireChange? |
boolean |
Returns
void
Defined in
insertHTML
insertHTML(html
, insertCursorAfter?
): void
Parameters
Name | Type |
---|---|
html |
string | number | Node |
insertCursorAfter? |
boolean |
Returns
void
Defined in
insertImage
insertImage(url
, styles?
, defaultWidth?
): void
Parameters
Name | Type |
---|---|
url |
string | HTMLImageElement |
styles? |
Nullable <IDictionary <string >> |
defaultWidth? |
Nullable <string | number > |
Returns
void
Defined in
isCollapsed
isCollapsed(): boolean
Returns
boolean
Defined in
cursorInTheEdge
cursorInTheEdge(start
, parentBlock
, fake?
): Nullable
<boolean
>
Parameters
Name | Type |
---|---|
start |
boolean |
parentBlock |
HTMLElement |
fake? |
null | Node |
Returns
Nullable
<boolean
>
Defined in
cursorOnTheLeft
cursorOnTheLeft(parentBlock
, fake?
): Nullable
<boolean
>
Parameters
Name | Type |
---|---|
parentBlock |
HTMLElement |
fake? |
null | Node |
Returns
Nullable
<boolean
>
Defined in
cursorOnTheRight
cursorOnTheRight(parentBlock
, fake?
): Nullable
<boolean
>
Parameters
Name | Type |
---|---|
parentBlock |
HTMLElement |
fake? |
null | Node |
Returns
Nullable
<boolean
>
Defined in
expandSelection
expandSelection(): ISelect
Returns
Defined in
insertCursorAtPoint
insertCursorAtPoint(x
, y
): boolean
Parameters
Name | Type |
---|---|
x |
number |
y |
number |
Returns
boolean
Defined in
setCursorAfter
setCursorAfter(node
): Nullable
<Text
>
Parameters
Name | Type |
---|---|
node |
Node |
Returns
Defined in
setCursorBefore
setCursorBefore(node
): Nullable
<Text
>
Parameters
Name | Type |
---|---|
node |
Node |
Returns
Defined in
setCursorIn
setCursorIn(node
, inStart?
): Node
Parameters
Name | Type |
---|---|
node |
Node |
inStart? |
boolean |
Returns
Defined in
selectRange
selectRange(range
, focus?
): ISelect
Parameters
Name | Type |
---|---|
range |
Range |
focus? |
boolean |
Returns
Defined in
select
select(node
, inward?
): ISelect
Parameters
Name | Type |
---|---|
node |
Node | HTMLElement | HTMLTableCellElement | HTMLTableElement |
inward? |
boolean |
Returns
Defined in
wrapInTagGen
wrapInTagGen(fakes?
): Generator
<HTMLElement
, undefined
, unknown
>
Parameters
Name | Type |
---|---|
fakes? |
Node [] |
Returns
Generator
<HTMLElement
, undefined
, unknown
>
Defined in
wrapInTag
wrapInTag(tagOrCallback
): HTMLElement
[]
Parameters
Name | Type |
---|---|
tagOrCallback |
HTMLTagNames | (font : HTMLElement ) => any |
Returns
Defined in
commitStyle
commitStyle(options
): void
Parameters
Name | Type |
---|---|
options |
IStyleOptions |
Returns
void
Defined in
eachSelection
eachSelection(callback
): void
Parameters
Name | Type |
---|---|
callback |
(current : Node ) => void |
Returns
void
Defined in
splitSelection
splitSelection(currentBox
, edge?
): Nullable
<Element
>
Parameters
Name | Type |
---|---|
currentBox |
HTMLElement |
edge? |
Node |
Returns
Defined in
jodit/src/types/select.d.ts:95