expose posfrommousestuff in codemirror - there might be a nicer way to do it, but I don't know how.