mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 07:32:11 +08:00

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