From c0747eaf8c13a3005ff90f0bd17b9641e16e6fb6 Mon Sep 17 00:00:00 2001 From: Raunak Raj <71929976+bajrangCoder@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:19:31 +0530 Subject: [PATCH] fix: only use selected text, copy text method --- src/handlers/quickTools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/quickTools.js b/src/handlers/quickTools.js index 9b1508ec7..e9b056f0e 100644 --- a/src/handlers/quickTools.js +++ b/src/handlers/quickTools.js @@ -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;