Skip to content

Commit c0747ea

Browse files
authored
fix: only use selected text, copy text method
1 parent 3696926 commit c0747ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/quickTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function toggleSearch() {
203203
const $searchInput = quickTools.$searchInput.el;
204204
const $toggler = quickTools.$toggler;
205205
const { editor } = editorManager;
206-
const selectedText = editor.getCopyText();
206+
const selectedText = editor.getSelectedText();
207207

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

0 commit comments

Comments
 (0)