Merge "ve.init.mw.DesktopArticleTarget: Fix double <div class="mw-parser-output"> after saving"

This commit is contained in:
jenkins-bot 2022-09-29 13:38:40 +00:00 committed by Gerrit Code Review
commit 2cbf2470dd

View file

@ -1251,8 +1251,8 @@ ve.init.mw.DesktopArticleTarget.prototype.replacePageContent = function (
) );
}
// eslint-disable-next-line no-jquery/no-html
this.$editableContent.find( '.mw-parser-output' ).first().html( html );
// eslint-disable-next-line no-jquery/no-append-html
this.$editableContent.find( '.mw-parser-output' ).first().replaceWith( html );
mw.hook( 'wikipage.content' ).fire( this.$editableContent );
if ( displayTitle ) {
// eslint-disable-next-line no-jquery/no-html