feat: get range row and paragraph element list #255

This commit is contained in:
Hufe921
2023-08-20 19:02:38 +08:00
parent 01340bb13c
commit 9495bfef39
5 changed files with 61 additions and 6 deletions
+21 -1
View File
@@ -67,6 +67,26 @@ Usage:
const rangeContext = instance.command.getRangeContext()
```
## getRangeRow
Feature: Get selection row element list
Usage:
```javascript
const rowElementList = instance.command.getRangeRow()
```
## getRangeParagraph
Feature: Get selection paragraph element list
Usage:
```javascript
const paragraphElementList = instance.command.getRangeParagraph()
```
## getPaperMargin
Feature: Gets the margins
@@ -137,4 +157,4 @@ const {
```javascript
const locale = await instance.command.getLocale()
```
```