From 57bf86b69ed81e2fb51e22b3de8cc688fe898d37 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 10 Nov 2017 14:59:01 +0000 Subject: [PATCH] Add mw-parser-output to preview elements Bug: T180214 Change-Id: I74700061c89ab4004229e3b03353067e92031774 --- modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js | 4 ++-- modules/ve-mw/ui/elements/ve.ui.MWPreviewElement.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js index 27271947c6..a31a8be21e 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js @@ -144,7 +144,7 @@ ve.ui.MWSaveDialog.prototype.setDiffAndReview = function ( wikitextDiffPromise, function createDiffElement( visualDiff ) { var diffElement = new ve.ui.DiffElement( visualDiff ); - diffElement.$document.addClass( 'mw-body-content' ); + diffElement.$document.addClass( 'mw-body-content mw-parser-output' ); // Run styles so links render with their appropriate classes ve.init.platform.linkCache.styleParsoidElements( diffElement.$document, baseDoc ); return diffElement; @@ -617,7 +617,7 @@ ve.ui.MWSaveDialog.prototype.initialize = function () { scrollable: true, padded: true } ); - this.$previewViewer = $( '
' ).addClass( 'mw-body-content' ); + this.$previewViewer = $( '
' ).addClass( 'mw-body-content mw-parser-output' ); this.previewPanel.$element // Make focusable for keyboard accessible scrolling .prop( 'tabIndex', 0 ) diff --git a/modules/ve-mw/ui/elements/ve.ui.MWPreviewElement.js b/modules/ve-mw/ui/elements/ve.ui.MWPreviewElement.js index 35bba677c7..859be86586 100644 --- a/modules/ve-mw/ui/elements/ve.ui.MWPreviewElement.js +++ b/modules/ve-mw/ui/elements/ve.ui.MWPreviewElement.js @@ -20,7 +20,7 @@ ve.ui.MWPreviewElement = function VeUiMwPreviewElement() { ve.ui.MWPreviewElement.super.apply( this, arguments ); // Initialize - this.$element.addClass( 've-ui-mwPreviewElement mw-body-content' ); + this.$element.addClass( 've-ui-mwPreviewElement mw-body-content mw-parser-output' ); }; /* Inheritance */