Depending on the user's internet connection, the code that sets up
mw.libs.ve.tempWikitextEditor may be completely skipped if the normal
editor code loads fast enough.
Refactor the code to handle all three cases using the same function.
Bug: T185279
Change-Id: I003b27f838d1986ed8d238089efd657b96e8ec91
The hook has been renamed from 've.tempWikitextReady' to
've.wikitextInteractive' in patchset 2 of changeset
I3678996bcf644cc889dd168ac3ce48b5c3633ec1 in mw/ext/VisualEditor,
but changeset I31a21e10b3fcd88fbce6881475f02a9d37df39c2 in this
repo was merged without being updated for that change.
Bug: T185279
Change-Id: I3256b0eb999e0259c3706697cd6a50459278af61
Only doing 'setSelection' doesn't guarantee that the textbox will be
scrolled (it works on Firefox and Edge, but not on Chrome and IE).
Bug: T152760
Change-Id: I3fab6363cd432d137430884eaca3555a7bf5aafa
Register a hook for when VE is finished initializing to select the error
section, just like the textbox-based editor.
Use the BeforePageDisplay hook so it runs on VE page loads too.
Bug: T160102
Change-Id: I59a7e0a3e8be32e4689cbf41c4904970902c4dff