Add method for editor