feat: add range and position context api

This commit is contained in:
Hufe921
2023-11-27 21:46:11 +08:00
parent 90efe1020f
commit 8acce15e76
10 changed files with 190 additions and 12 deletions
+10
View File
@@ -87,6 +87,16 @@ const rangeContext = instance.command.getRangeContext()
const rowElementList = instance.command.getRangeRow()
```
## getKeywordRangeList
功能:获取关键词所在选区列表
用法:
```javascript
const rangeList = instance.command.getKeywordRangeList()
```
## getRangeParagraph
功能:获取选区所在段落元素列表