The code editor saves to the active question, not the question the editor is opened for. So if you are working on the code for Q1 and your webview is on Q2, clicking save will save the active Q1 editor to Q2 instead of the editor it is assigned for.
Editor Q1, webview Q2

Web UI
