Atomic Range: click to select?

We have set some tokens as atomic ranges.
Our users have raised the issue that they cannot click to select these atomicRanges.

For example, in the official example CodeMirror Decoration Example it is possible to select a word by double clicking on it, but this is not possible for an atomic range.

Is there a standard way to enable click or double click to select an atomicRange?

You’d have to define your own mousedown handler for this, but it should be a quite easy to implement (get the position of the click, look it up in your range set, select the range if there is one, return false otherwise).

Not difficult indeed. Thanks for the confirmation