Skip to content

Commit

Permalink
fix a export content issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong committed Mar 29, 2024
1 parent 39493c0 commit d5a3c66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/roosterjs-content-model-core/lib/editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ export class Editor implements IEditor {
core.environment.domToModelSettings.calculated,
core.api.createEditorContext(core, false /*saveIndex*/)
);
return domToContentModel(core.physicalRoot, domToModelContext);

return cloneModel(domToContentModel(core.physicalRoot, domToModelContext), {
includeCachedElement: this.cloneOptionCallback,
});
}
}

Expand Down

0 comments on commit d5a3c66

Please sign in to comment.