mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
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:
parent
f1b7225336
commit
ab8ae002af
|
@ -145,6 +145,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 mw-parser-output mw-content-' + visualDiff.newDoc.getDir() );
|
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
|
// 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;
|
||||||
|
|
Loading…
Reference in a new issue