Merge "Execute codeMirror.save() on beforeunload"

This commit is contained in:
jenkins-bot 2017-11-08 00:21:15 +00:00 committed by Gerrit Code Review
commit 99b919f626

View file

@ -561,4 +561,11 @@
}
}
// Synchronize textarea with CodeMirror before leaving
window.addEventListener( 'beforeunload', function () {
if ( codeMirror ) {
codeMirror.save();
}
} );
}( mediaWiki, jQuery ) );