mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Merge "DesktopArticleTarget: track mwedit.ready even if skipping temp editor for new sections"
This commit is contained in:
commit
829089008f
|
@ -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 } );
|
||||
|
|
Loading…
Reference in a new issue