mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
Merge "ve.ui.MWSaveDialog: Fix fragment links in visual diff too"
This commit is contained in:
commit
362a0b727c
|
@ -148,6 +148,7 @@ ve.ui.MWSaveDialog.prototype.setDiffAndReview = function ( wikitextDiffPromise,
|
|||
ve.targetLinksToNewWindow( diffElement.$document[ 0 ] );
|
||||
// Run styles so links render with their appropriate classes
|
||||
ve.init.platform.linkCache.styleParsoidElements( diffElement.$document, baseDoc );
|
||||
ve.fixFragmentLinks( diffElement.$document[ 0 ], mw.Title.newFromText( ve.init.target.getPageName() ), 'mw-save-visualdiff-' );
|
||||
return diffElement;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue