It's a Wave issue:
https://issues.apache.org/jira/browse/WAVE-269
To reproduce issue:
Editing a wave, set the cursor position somewhere in the middle. After, click the green puzzle buttom and select a new gadget from the gadget selector dialog.
What happend:
The gadget was added at the end of the wave.
What I expected:
I expected the gadget to appear in the cursor position.
Issue reproduced in Firefox and Chrome