Works on Editor's lifecycle.