mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Follow-up I5357a909: Fix logic for autosave from edited state
Bug: T189071 Change-Id: I5439a73ffcf26795f58625720b1f1667ee3965cc
This commit is contained in:
parent
16437646fe
commit
045f3b7640
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue