If you click the button the XXX is already selected for you...all you have to do is paste.
Not for me. If click the button I get
[player=XXX]
I with the text cursor to the right of the closing bracket. (I've used a bolded capital I to show where the cursor is)