ve.ui.MWSaveDialog: Target links in visual diff to new window

Needed after change I6c988c012730d36d60629864a436e4a1700684c5
in VE core.

Change-Id: I7f0e836bd105a925f8dc62d52f081ee9051765fd
This commit is contained in:
Bartosz Dziewoński 2019-02-22 22:41:33 +01:00
parent f1b7225336
commit ab8ae002af

View file

@ -145,6 +145,7 @@ ve.ui.MWSaveDialog.prototype.setDiffAndReview = function ( wikitextDiffPromise,
function createDiffElement( visualDiff ) {
var diffElement = new ve.ui.DiffElement( visualDiff );
diffElement.$document.addClass( 'mw-body-content mw-parser-output mw-content-' + visualDiff.newDoc.getDir() );
ve.targetLinksToNewWindow( diffElement.$document[ 0 ] );
// Run styles so links render with their appropriate classes
ve.init.platform.linkCache.styleParsoidElements( diffElement.$document, baseDoc );
return diffElement;