feat:format control data option

This commit is contained in:
Hufe921
2022-04-01 21:13:47 +08:00
parent befb39f26b
commit 54cbd83577
3 changed files with 34 additions and 8 deletions
+4 -1
View File
@@ -1236,7 +1236,10 @@ export class CommandAdapt {
const { startIndex, endIndex } = this.range.getRange()
if (!~startIndex && !~endIndex) return
// 格式化element
formatElementList(payload, false)
formatElementList(payload, {
isHandleFirstElement: false,
editorOptions: this.options
})
const elementList = this.draw.getElementList()
const isCollapsed = startIndex === endIndex
const start = startIndex + 1