Merge "Edit check: fix an error when drawing selections"

This commit is contained in:
jenkins-bot 2024-11-11 11:19:39 +00:00 committed by Gerrit Code Review
commit 6c4b4ec7d4

View file

@ -213,7 +213,7 @@ if ( mw.config.get( 'wgVisualEditorConfig' ).editCheck || mw.editcheck.ecenable
// TODO: Make selections clickable when multicheck is enabled
surfaceView.getSelectionManager().drawSelections(
'editCheck',
checks.map( ( check ) => ve.ce.Selection.static.newFromModel( check.highlight.getSelection(), surfaceView ) )
selections
);
surfaceView.setReviewMode( true, highlightNodes );
};