feat: add getTitleValue api #536

This commit is contained in:
Hufe921
2024-05-02 22:26:00 +08:00
parent 0ae67ec602
commit 15f52c5e43
10 changed files with 136 additions and 3 deletions
+14
View File
@@ -231,3 +231,17 @@ Usage:
```javascript
const container = await instance.command.getContainer()
```
## getTitleValue
Feature: Get title value
Usage:
```javascript
const {
value: string | null
elementList: IElement[]
zone: EditorZone
}[] = await instance.command.getTitleValue(payload: IGetTitleValueOption)
```
+1
View File
@@ -164,6 +164,7 @@ interface IElement {
};
// title
level?: TitleLevel;
title?: ITitle;
// list
listType?: ListType;
listStyle?: ListStyle;