feat: add range and position context api
This commit is contained in:
@@ -71,12 +71,40 @@ instance.command.executeBackspace()
|
||||
|
||||
## executeSetRange
|
||||
|
||||
Feature: Set selection
|
||||
Feature: Set range
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
instance.command.executeSetRange(startIndex: number , endIndex: number)
|
||||
instance.command.executeSetRange(
|
||||
startIndex: number,
|
||||
endIndex: number,
|
||||
tableId?: string,
|
||||
startTdIndex?: number,
|
||||
endTdIndex?: number,
|
||||
startTrIndex?: number,
|
||||
endTrIndex?: number
|
||||
)
|
||||
```
|
||||
|
||||
## executeReplaceRange
|
||||
|
||||
Feature: Replace range
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
instance.command.executeReplaceRange(range: IRange)
|
||||
```
|
||||
|
||||
## executeSetPositionContext
|
||||
|
||||
Feature: Set position context
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
instance.command.executeSetPositionContext(range: IRange)
|
||||
```
|
||||
|
||||
## executeForceUpdate
|
||||
|
||||
@@ -59,7 +59,7 @@ const wordCount = await instance.command.getWordCount()
|
||||
|
||||
## getRangeText
|
||||
|
||||
Feature: Get selection text
|
||||
Feature: Get range text
|
||||
|
||||
Usage:
|
||||
|
||||
@@ -69,7 +69,7 @@ const rangeText = instance.command.getRangeText()
|
||||
|
||||
## getRangeContext
|
||||
|
||||
Feature: Get selection context
|
||||
Feature: Get range context
|
||||
|
||||
Usage:
|
||||
|
||||
@@ -79,7 +79,7 @@ const rangeContext = instance.command.getRangeContext()
|
||||
|
||||
## getRangeRow
|
||||
|
||||
Feature: Get selection row element list
|
||||
Feature: Get range row element list
|
||||
|
||||
Usage:
|
||||
|
||||
@@ -87,9 +87,19 @@ Usage:
|
||||
const rowElementList = instance.command.getRangeRow()
|
||||
```
|
||||
|
||||
## getKeywordRangeList
|
||||
|
||||
Feature: Get range list by keyword
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
const rangeList = instance.command.getKeywordRangeList()
|
||||
```
|
||||
|
||||
## getRangeParagraph
|
||||
|
||||
Feature: Get selection paragraph element list
|
||||
Feature: Get range paragraph element list
|
||||
|
||||
Usage:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user