https://bugzilla.wikimedia.org/show_bug.cgi?id=49439

       Web browser: ---
            Bug ID: 49439
           Summary: VisualEditor: Surface should be able to inherit
                    commands and toolbar from other surface
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Technical Debt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to