mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Remove some hardcoded CAPTCHA support code"
This commit is contained in:
commit
ae404ff919
|
@ -1623,7 +1623,6 @@
|
|||
"mediawiki.widgets",
|
||||
"ext.visualEditor.switching",
|
||||
"ext.visualEditor.welcome",
|
||||
"ext.visualEditor.mwextensionmessages",
|
||||
"oojs-ui.styles.icons-editing-advanced"
|
||||
],
|
||||
"messages": [
|
||||
|
|
|
@ -1042,28 +1042,6 @@ class VisualEditorHooks {
|
|||
'targets' => [ 'desktop', 'mobile' ],
|
||||
] ] );
|
||||
}
|
||||
|
||||
$extensionMessages = [];
|
||||
$extensionRegistry = ExtensionRegistry::getInstance();
|
||||
if ( $extensionRegistry->isLoaded( 'ConfirmEdit' ) ) {
|
||||
$extensionMessages[] = 'captcha-edit';
|
||||
$extensionMessages[] = 'captcha-label';
|
||||
|
||||
if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) {
|
||||
$extensionMessages[] = 'questycaptcha-edit';
|
||||
}
|
||||
|
||||
if ( $extensionRegistry->isLoaded( 'FancyCaptcha' ) ) {
|
||||
$extensionMessages[] = 'fancycaptcha-edit';
|
||||
$extensionMessages[] = 'fancycaptcha-reload-text';
|
||||
}
|
||||
}
|
||||
$resourceLoader->register( [
|
||||
'ext.visualEditor.mwextensionmessages' => $veResourceTemplate + [
|
||||
'messages' => $extensionMessages,
|
||||
'targets' => [ 'desktop', 'mobile' ],
|
||||
]
|
||||
] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -100,10 +100,6 @@
|
|||
font-style: italic;
|
||||
}
|
||||
|
||||
.ve-ui-saveDialog-captchaInput {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.ve-ui-mwSaveDialog-visualDiffFeedback {
|
||||
float: right;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue