From ab8ae002afa34b2243a634352c2f25b41cb293e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 22 Feb 2019 22:41:33 +0100 Subject: [PATCH] ve.ui.MWSaveDialog: Target links in visual diff to new window Needed after change I6c988c012730d36d60629864a436e4a1700684c5 in VE core. Change-Id: I7f0e836bd105a925f8dc62d52f081ee9051765fd --- modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js index b09ca0e7e1..eba97607f4 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js @@ -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;