Added the editor code