Steps to reproduce:
- Load a random page.
- Click on edit.
- Disable CodeMirror.
- Make a first change on the text.
- Enable CodeMirror.
- Make a second change on the text.
- Click on browser history back.
- Confirm the confirmation message.
- Click on browser history forward.
Current result:
The text with the first changes is restored.
Expected result:
The text with the second changes should restored.