HomePhabricator

VisualEditorWidget: Ensure toolbar is initialized after editor is attached

Authored by Catrope.

Description

VisualEditorWidget: Ensure toolbar is initialized after editor is attached

setSurface() calls toolbar.initialize(), which should be called after
the toolbar is attached and visible, not before.

To make this possible, add an afterAttach method to AbstractEditorWidget
and call it from EditorSwitcherWidget.

Change-Id: I979225dbbd0acd0379322166f6557b961e41abfb

Details