mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
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:
parent
b1cab3e06c
commit
f67dfea29d
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue