diff --git a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js index fa3e94afec..d766108c05 100644 --- a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js @@ -784,6 +784,8 @@ ve.init.mw.ViewPageTarget.prototype.setupSkinTabs = function () { ve.msg( 'accesskey-ca-editsource' ), caVeEditNextnode ); + // Copy over classes (e.g. 'selected') + $( caVeEditSource ).addClass( $caEdit.attr( 'class' ) ); // Create "Edit" tab. $caEdit.remove();