Add definition for editor