how to disable selection in cm6

if I want to disable the selection in readonly mode, which means user can not mark range selection with drag or keyboard. what config should use.

Probably EditorView.editable.of(false).