updated default editor code