Red #1 There is already a popupmenu in the IDE.The only pb is that right click event is filtered by textarea. :(I will use a floating toolbar