Skip to content

Commit

Permalink
fix: ace editor auto focus after insert script
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Jul 15, 2022
1 parent 2805ce5 commit bc0823a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,6 @@ export class EoEditorComponent implements AfterViewInit, OnInit, OnChanges {
const ace = this.aceRef.directiveRef.ace();
const cursorPos = ace.getCursorPosition();
ace.session.insert(cursorPos, code);
ace.focus();
}
}

0 comments on commit bc0823a

Please sign in to comment.