Fix history and edit mode change
Fix history and edit mode change

PeterDaveHello/hackmd,jccrofty30/hackmd,aswathyjacob8/newtest,jackycute/HackMD,jackycute/HackMD,Yukaii/hackmd,Rwing/hackmd,jccrofty30/hackmd,jccrofty30/hackmd,Yukaii/hackmd,ironhack/hackmd,ironhack/hackmd,aswathyjacob8/newtest,hackmdio/hackmd,Rwing/hackmd,PeterDaveHello/hackmd,aswathyjacob8/newtest,Rwing/hackmd,Yukaii/hackmd,PeterDaveHello/hackmd,ironhack/hackmd,hackmdio/hackmd,hackmdio/hackmd,jackycute/HackMD