Added editor code