MobileCurrentTextInfo
Classes
MobileCurrentTextInfo
Information about the current cursor position and selected text.
Implements
Constructors
Constructor
new MobileCurrentTextInfo(rootElement): MobileCurrentTextInfo;
Parameters
| Parameter | Type |
|---|---|
rootElement | HTMLElement |
Returns
Properties
isParagraphAListItem
isParagraphAListItem: boolean;
Indicates if the current paragraph is a list item.
Implementation of
ICurrentTextInfo.isParagraphAListItem
isParagraphEmpty
isParagraphEmpty: boolean;
Indicates if the current paragraph is empty.
Implementation of
ICurrentTextInfo.isParagraphEmpty
Accessors
isCaretAtTheEndOfParagraph
Get Signature
get isCaretAtTheEndOfParagraph(): boolean;
Indicates if the cursor is at the end of a paragraph.
Returns
boolean
Indicates if the cursor is at the end of a paragraph.
Implementation of
ICurrentTextInfo.isCaretAtTheEndOfParagraph
isCursorAtTheBeginningOfParagraph
Get Signature
get isCursorAtTheBeginningOfParagraph(): boolean;
Indicates if the cursor is at the beginning of a paragraph.
Returns
boolean
Indicates if the cursor is at the beginning of a paragraph.
Implementation of
ICurrentTextInfo.isCursorAtTheBeginningOfParagraph
isSelectionCollapsed
Get Signature
get isSelectionCollapsed(): boolean;
Indicates that current selection is collapsed.
Returns
boolean
Indicates that current selection is collapsed.
Implementation of
ICurrentTextInfo.isSelectionCollapsed
isSelectionMultiline
Get Signature
get isSelectionMultiline(): boolean;
Indicates that current selection is multiline.
Returns
boolean
Indicates that current selection is multiline.
Implementation of
ICurrentTextInfo.isSelectionMultiline
Methods
findItemToContinueBulletedList()
findItemToContinueBulletedList(bulletCharCode): number;
Finds the previous list item to continue bulleted list.
Parameters
| Parameter | Type | Description |
|---|---|---|
bulletCharCode | number | character code used as 'bullet' (e.g., code 8225 used for “‡“). |
Returns
number
the paragraph index of the found list item (if it was found).
Implementation of
ICurrentTextInfo.findItemToContinueBulletedList
findItemToContinueNumberedList()
findItemToContinueNumberedList(format, itemNumber): number;
Finds the previous list item to continue bulleted list.