Problem described here: https://discuss.codemirror.net/t/basicsetup-breaks-cursor-highlighting/6964/5