add promise on editor loaded