[FORWARD PORT] LPS-50840 declare initEditor as global