mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-30 19:15:43 +00:00
Merge "Allow the signature wikitext to be overridden locally"
This commit is contained in:
commit
95c0637a10
|
@ -312,6 +312,8 @@ class WikiEditorHooks {
|
||||||
// expose magic words for use by the wikieditor toolbar
|
// expose magic words for use by the wikieditor toolbar
|
||||||
WikiEditorHooks::getMagicWords( $vars );
|
WikiEditorHooks::getMagicWords( $vars );
|
||||||
|
|
||||||
|
$vars['mw.msg.wikieditor'] = wfMessage( 'sig-text', '~~~~' )->inContentLanguage()->text();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -195,7 +195,7 @@ $.wikiEditor.modules.toolbar.config = {
|
||||||
action: {
|
action: {
|
||||||
type: 'encapsulate',
|
type: 'encapsulate',
|
||||||
options: {
|
options: {
|
||||||
pre: '--~~~~'
|
pre: mw.config.get( 'mw.msg.wikieditor' )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue