I have the same experience as @Camilo . The query is not kept when switching between modes, which I find very annoying.
This causes me to have to switch back, click the text, select all, copy, switch to the desired mode, select the text input, and paste it in.