mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 03:35:58 +00:00
Merge "Create a toolbarReady hook for attaching toolbar tools"
This commit is contained in:
commit
d4db64d19f
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "WikiEditor",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"author": [
|
||||
"Derk-Jan Hartman",
|
||||
"Trevor Parscal",
|
||||
|
|
|
@ -768,6 +768,8 @@
|
|||
}
|
||||
setTimeout( function () {
|
||||
context.$textarea.trigger( 'wikiEditor-toolbar-doneInitialSections' );
|
||||
// Use hook for attaching new toolbar tools to avoid race conditions
|
||||
mw.hook( 'wikiEditor.toolbarReady' ).fire( context.$textarea );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue