mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Find and replace: Add pref keys for find/replace text inputs
Adds support for storing find and replace text inputs added in core in I8ae8d49. Change-Id: I78dea87025e2bfa1b3ff977b16986e8431ddfb22
This commit is contained in:
parent
815a729780
commit
6c1891c150
|
@ -342,18 +342,13 @@ class VisualEditorHooks {
|
|||
'default' => $user->getOption( 'visualeditor-betatempdisable' ) ||
|
||||
$user->getOption( 'visualeditor-autodisable' )
|
||||
);
|
||||
$preferences['visualeditor-autodisable'] = array(
|
||||
'type' => 'api'
|
||||
);
|
||||
$preferences['visualeditor-hidebetawelcome'] = array(
|
||||
'type' => 'api'
|
||||
);
|
||||
$preferences['visualeditor-findAndReplace-regex'] = array(
|
||||
'type' => 'api'
|
||||
);
|
||||
$preferences['visualeditor-findAndReplace-matchCase'] = array(
|
||||
'type' => 'api'
|
||||
);
|
||||
$api = array( 'type' => 'api' );
|
||||
$preferences['visualeditor-autodisable'] = $api;
|
||||
$preferences['visualeditor-hidebetawelcome'] = $api;
|
||||
$preferences['visualeditor-findAndReplace-findText'] = $api;
|
||||
$preferences['visualeditor-findAndReplace-replaceText'] = $api;
|
||||
$preferences['visualeditor-findAndReplace-regex'] = $api;
|
||||
$preferences['visualeditor-findAndReplace-matchCase'] = $api;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue