Merge "Create a toolbarReady hook for attaching toolbar tools"

This commit is contained in:
jenkins-bot 2020-04-29 17:14:39 +00:00 committed by Gerrit Code Review
commit d4db64d19f
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "WikiEditor",
"version": "0.5.2",
"version": "0.5.3",
"author": [
"Derk-Jan Hartman",
"Trevor Parscal",

View file

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