Include gadgets in cursor position (now it is inserted at the end of the gadget)
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.
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