mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Add external classes to mw:ExtLinks in NWE preview"
This commit is contained in:
commit
9a90148d05
|
@ -134,6 +134,8 @@ ve.ui.MWSaveDialog.prototype.setDiffAndReview = function ( content ) {
|
|||
ve.ui.MWSaveDialog.prototype.showPreview = function ( content ) {
|
||||
this.$previewViewer.empty().append( content );
|
||||
mw.hook( 'wikipage.content' ).fire( this.$previewViewer );
|
||||
// TODO: Remove when fixed upstream in Parsoid (T58756)
|
||||
this.$previewViewer.find( 'a[rel="mw:ExtLink"]' ).addClass( 'external' );
|
||||
this.actions.setAbilities( { approve: true } );
|
||||
this.popPending();
|
||||
this.swapPanel( 'preview' );
|
||||
|
|
Loading…
Reference in a new issue