diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index 294671ebfe..c698bdcd08 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -476,7 +476,7 @@ ve.init.mw.ArticleTarget.prototype.surfaceReady = function () { } } else { // ...otherwise store this document state for later recovery - if ( !this.fromEditedState ) { + if ( this.fromEditedState ) { // Store immediately if the document was previously edited // (e.g. in a different mode) this.storeDocState( this.originalHtml );