Skip to content

Commit

Permalink
fix: only use selected text, copy text method
Browse files Browse the repository at this point in the history
  • Loading branch information
bajrangCoder authored Nov 29, 2024
1 parent 3696926 commit c0747ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/quickTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function toggleSearch() {
const $searchInput = quickTools.$searchInput.el;
const $toggler = quickTools.$toggler;
const { editor } = editorManager;
const selectedText = editor.getCopyText();
const selectedText = editor.getSelectedText();

if (!$footer.contains($searchRow1)) {
const { className } = quickTools.$toggler;
Expand Down

0 comments on commit c0747ea

Please sign in to comment.