Publishing one page strips all the classes of other pages

I am working on multiple pages of a website, and have multiple designer tabs open for different pages and sometimes when I publish changes to one page, it will completely strip large sections of another page of all of their classes.

I have lost nearly 40 hours of work because of this. Is it because I have multiple designer tabs open simultaneously?