Merge "Remove #ca-edit from required skin elements on edit pages"

This commit is contained in:
jenkins-bot 2018-09-26 11:27:22 +00:00 committed by Gerrit Code Review
commit f6cea616ef

View file

@ -1076,7 +1076,8 @@
requiredSkinElements =
$( '#content' ).length &&
$( '#mw-content-text' ).length &&
$( '#ca-edit' ).length;
// A link to open the editor is technically not necessary if it's going to open itself
( isEditPage || $( '#ca-edit' ).length );
if ( uri.query.action === 'edit' && $( '#wpTextbox1' ).length ) {
initialWikitext = $( '#wpTextbox1' ).textSelection( 'getContents' );