keep caret position in collaborative mode