Page MenuHomePhabricator

Tools should be able to specify contexts they can/can't operate in themselves
Closed, ResolvedPublic

Description

Right now we use things like:

toolbarSubset = ve.init.mw.ViewPageTarget.static.getToolbarSubset( [
Can't have nested references
'mwReference',
Lists not properly supported by PHP parser
'number', 'bullet', 'outdent', 'indent'
] );

in ve.ui.MWReferenceDialog and ve.ui.MWMediaDialog

Instead, whether a given tool makes sense in a reference or image context (or in a subeditor in general) should be defined in the tool itself.


Version: unspecified
Severity: enhancement

Details

Reference
bz49438

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:08 AM
bzimport added a project: Technical-Debt.
bzimport set Reference to bz49438.
Jdforrester-WMF renamed this task from VisualEditor: Tools should be able to specify contexts they can/can't operate in themselves to Tools should be able to specify contexts they can/can't operate in themselves.Dec 1 2014, 9:17 PM
Jdforrester-WMF closed this task as Resolved.
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF set Security to None.