From f746a8d426c79273850569b764b9e3faecb72706 Mon Sep 17 00:00:00 2001 From: Itallo Dornelas <72089253+ItalloDornelas@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:59:55 -0300 Subject: [PATCH] Feature/prt 1774 (#42) * feat: add replaceCommand true * feat: add callback to finishReport * feat: add sdk method to copy --- src/syncfusion/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/syncfusion/index.ts b/src/syncfusion/index.ts index b166497..0f2236e 100644 --- a/src/syncfusion/index.ts +++ b/src/syncfusion/index.ts @@ -69,9 +69,12 @@ export class IaraSyncfusionAdapter if (wrapper) wrapper.style.cursor = status ? "not-allowed" : "auto"; } - copyReport(): void { + async copyReport(): Promise { + this._editor.documentEditor.focusIn(); this._selectionManager.selection.selectAll(); - this._selectionManager.selection.copySelectedContent(false); + this._recognition.automation.copyText( + ...(await this._contentManager.getContent()) + ); } clearReport(): void {