feat:optimize add content block

This commit is contained in:
Hufe921
2022-11-29 21:23:31 +08:00
parent 67d69e9b74
commit c79f647bc7
6 changed files with 52 additions and 11 deletions
+3 -1
View File
@@ -430,7 +430,9 @@ export class CommandAdapt {
trList
}
// 格式化element
formatElementList([element])
formatElementList([element], {
editorOptions: this.options
})
const curIndex = startIndex + 1
if (startIndex === endIndex) {
elementList.splice(curIndex, 0, element)