(editor)
| 792 | } |
| 793 | |
| 794 | function clearSearchQuery(editor) { |
| 795 | if (!editor) return; |
| 796 | editor.dispatch({ |
| 797 | effects: setSearchQuery.of(new SearchQuery({ search: "" })), |
| 798 | }); |
| 799 | } |
| 800 | |
| 801 | function getSelectedText(editor) { |
| 802 | if (!editor) return ""; |