mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Add mw-parser-output to preview elements
Bug: T180214 Change-Id: I74700061c89ab4004229e3b03353067e92031774
This commit is contained in:
parent
625dea5a4b
commit
57bf86b69e
|
@ -144,7 +144,7 @@ ve.ui.MWSaveDialog.prototype.setDiffAndReview = function ( wikitextDiffPromise,
|
||||||
|
|
||||||
function createDiffElement( visualDiff ) {
|
function createDiffElement( visualDiff ) {
|
||||||
var diffElement = new ve.ui.DiffElement( 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
|
// Run styles so links render with their appropriate classes
|
||||||
ve.init.platform.linkCache.styleParsoidElements( diffElement.$document, baseDoc );
|
ve.init.platform.linkCache.styleParsoidElements( diffElement.$document, baseDoc );
|
||||||
return diffElement;
|
return diffElement;
|
||||||
|
@ -617,7 +617,7 @@ ve.ui.MWSaveDialog.prototype.initialize = function () {
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
padded: true
|
padded: true
|
||||||
} );
|
} );
|
||||||
this.$previewViewer = $( '<div>' ).addClass( 'mw-body-content' );
|
this.$previewViewer = $( '<div>' ).addClass( 'mw-body-content mw-parser-output' );
|
||||||
this.previewPanel.$element
|
this.previewPanel.$element
|
||||||
// Make focusable for keyboard accessible scrolling
|
// Make focusable for keyboard accessible scrolling
|
||||||
.prop( 'tabIndex', 0 )
|
.prop( 'tabIndex', 0 )
|
||||||
|
|
|
@ -20,7 +20,7 @@ ve.ui.MWPreviewElement = function VeUiMwPreviewElement() {
|
||||||
ve.ui.MWPreviewElement.super.apply( this, arguments );
|
ve.ui.MWPreviewElement.super.apply( this, arguments );
|
||||||
|
|
||||||
// Initialize
|
// Initialize
|
||||||
this.$element.addClass( 've-ui-mwPreviewElement mw-body-content' );
|
this.$element.addClass( 've-ui-mwPreviewElement mw-body-content mw-parser-output' );
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Inheritance */
|
/* Inheritance */
|
||||||
|
|
Loading…
Reference in a new issue