https://bugzilla.wikimedia.org/show_bug.cgi?id=52011
Web browser: ---
Bug ID: 52011
Summary: VisualEditor: ve.ui.Context#toolbar is null in
MediaWiki
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], [email protected]
Classification: Unclassified
Mobile Platform: ---
Following the documentation[1] starting at ve.ui.Surface (from ve.instances[0])
one would go to #getContext and access .toolbar. But though that property is
defined, it is set to null.
I'm not sure why, but apparently our MediaWiki's init is instantiating its own
and is only accessible from ve.init.mw.ViewPageTarget#toolbar
(ve.init.mw.targets[0].toolbar).
It probably shouldn't have to instantiate its own one, and certainly not make
it inaccessible to the rest of VE.
[1] https://doc.wikimedia.org/VisualEditor/master/#!/api/ve.ui.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