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

I suppose technically you don't need it if you're already on an
?action=edit page, since that will cause the editor to load as well.
At a glance nothing seems to break if it is missing (other than the
fact that there is no way to launch the editor, obviously).

Bug: T179427
Change-Id: I3c221ded302702b881857930da5dc41630680c02
This commit is contained in:
Bartosz Dziewoński 2018-09-25 14:06:01 +02:00
parent b1cab3e06c
commit f67dfea29d

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' );