Passing the cursor position to the didAddValue hook