Skip to content

Commit

Permalink
Feature/prt 1761 1 (#43)
Browse files Browse the repository at this point in the history
* feat: improve debounce logic to save

* feat: add rich and text to get id
  • Loading branch information
ItalloDornelas authored Dec 20, 2023
1 parent 7f200f4 commit 06a271a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ export abstract class EditorAdapter {
abstract insertInference(inference: IaraSpeechRecognitionDetail): void;
abstract getEditorContent(): Promise<[string, string, string]>;

beginReport(currentReportId?: string): string | void {
if (currentReportId) return;
return this._recognition.beginReport();
beginReport(): string | void {
return this._recognition.beginReport({ richText: "", text: "" });
}

finishReport(clear = true): void {
Expand Down

0 comments on commit 06a271a

Please sign in to comment.