Right now, we have to do the following in ve.ui.MWReferenceDialog and ve.ui.MWMediaDialog to set up the sub-editor's surface correctly:
this.referenceSurface.addCommands( ve.init.mw.ViewPageTarget.static.surfaceCommands );
Instead of accessing ve.init.mw (and assuming all surfaces with MW*Dialogs will be instantiated by ve.init.mw.ViewPageTarget), we should just be able to say "initialize this new surface based on this existing surface".
Version: unspecified
Severity: enhancement