Penar Musaraj 54a52e5691
DEV: Improve checking for selected text (#30967)
After you've selected and deselected text, `selection.rangeCount` will
return `true` on future events. Checking for `selection.toString` is
more robust.

Followup to f1bdd86a8c9bec03b962167c37963b1d11d0e5ea
2025-02-07 12:13:39 -05:00
..