Merge "DesktopArticleTarget: track mwedit.ready even if skipping temp editor for new sections"

This commit is contained in:
jenkins-bot 2018-05-04 21:59:27 +00:00 committed by Gerrit Code Review
commit 829089008f

View file

@ -411,6 +411,10 @@
// 'mwedit.ready' has already been fired for source mode in setupTempWikitextEditor
ve.track( 'mwedit.ready', { mode: mode } );
} else if ( !tempWikitextEditor ) {
// We're in source mode, but skipped the
// tempWikitextEditor, so make sure we do relevant
// tracking / hooks:
ve.track( 'mwedit.ready', { mode: mode } );
mw.hook( 've.wikitextInteractive' ).fire();
}
ve.track( 'mwedit.loaded', { mode: mode } );