Fix VisualEditor integration to work with updated API

Change-Id: I1279cae3a977904d11cd4c53b107374b4bbd1c95
Merge "Fix VisualEditor integration to work with updated API"