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:
Ed Sanders 2015-10-04 13:39:58 +01:00
parent 815a729780
commit 6c1891c150

View file

@ -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;
}