feat(编辑能力): 支持富文本选区与六种格式
build.yaml / build (push) Successful in 54s

This commit is contained in:
xiaoqidun committed 2026-10-14 14:27:17 +08:00
1 parent 71a3a4ee79
commit 61cfb79f25
15 files changed
+2694 -55

No files matched your search

+11 -1
View File
@@ -246,8 +246,18 @@ func (e *Editor) ImportObjectsContext(ctx context.Context, source *Editor, sourc
imported[i].origin = &editorObjectOrigin{editor: editor, document: editor.documentIdentity(), data: data, node: root.child("Layer").children[0], object: object}
}
copied, err = editor.CopyObjectsContext(ctx, page, imported, options.DX, options.DY)
return err
if err != nil {
return err
}
orderedIDs := make([]string, len(objects))
for i, object := range objects {
orderedIDs[i] = editorObjectID(object)
}
return editor.copyRichTextMetadata(source, sourcePage, orderedIDs, page, copied)
})
if err != nil {
return nil, err
}
return copied, err
}