This is for the new `.setCaretBefore` functionality.