VisualEditor: Surface should be able to inherit commands and toolbar from other surface
Closed, ResolvedPublic


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( );

Instead of accessing (and assuming all surfaces with MW*Dialogs will be instantiated by, we should just be able to say "initialize this new surface based on this existing surface".

Version: unspecified
Severity: enhancement

bzimport added a project: Technical-Debt.Via ConduitNov 22 2014, 2:08 AM
bzimport set Reference to bz49439.
Catrope created this task.Via LegacyJun 11 2013, 3:33 PM
Catrope added a comment.Via ConduitJun 11 2013, 3:35 PM

Stylesheets should be inherited as well (and be loaded by the surface rather than the dialog) so we don't have to do things like

ve.ui.MWReferenceDialog.static.addLocalStylesheets( [
] );

Jdforrester-WMF added a comment.Via ConduitDec 12 2013, 7:49 PM

Not just inherit, but also block from inheritance for specific instantiations (e.g. the caption of an image inside a reference can't take a reference - bug 58270).

Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 6:42 PM
Jdforrester-WMF closed this task as "Resolved".Via WebNov 28 2014, 6:15 PM
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF set Security to None.
Jdforrester-WMF set Story Points to 8.Via WebAug 5 2015, 12:15 AM

Add Comment