editor window basic code