Merge "Add mw-parser-output to preview elements"

This commit is contained in:
jenkins-bot 2017-11-13 12:55:24 +00:00 committed by Gerrit Code Review
commit 3998651aa2
2 changed files with 3 additions and 3 deletions

View file

@ -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 = $( '<div>' ).addClass( 'mw-body-content' );
this.$previewViewer = $( '<div>' ).addClass( 'mw-body-content mw-parser-output' );
this.previewPanel.$element
// Make focusable for keyboard accessible scrolling
.prop( 'tabIndex', 0 )

View file

@ -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 */