Hi,
I'm trying to eliminate the upper toolbar of infoWindow that contains maximize and close buttons.
I want to do it because I use Editor.AttributeInspector and I want the user to use either the OK button or Delete Button.
I don't want the user to click on the close 
Here is the code I wrote:
initEditor: function() {
this._defaultStartStr = esriBundle.toolbars.draw.start;
esriBundle.toolbars.draw.start = esriBundle.toolbars.draw.start +
"<br/>" + "(" + this.nls.pressStr + "<b>" +
this.nls.ctrlStr + "</b> " + this.nls.snapStr + ")";
this._defaultAddPointStr = esriBundle.toolbars.draw.addPoint;
esriBundle.toolbars.draw.addPoint = esriBundle.toolbars.draw.addPoint +
"<br/>" + "(" + this.nls.pressStr + "<b>" +
this.nls.ctrlStr + "</b> " + this.nls.snapStr + ")";
var json = this.config.editor;
var settings = {};
for (var attr in json) {
settings[attr] = json[attr];
}
settings.layerInfos = this.layers;
settings.map = this.map;
var params = {
settings: settings
};
if (!this.editDiv) {
this.editDiv = html.create("div", {
style: {
width: "100%",
height: "100%"
}
});
html.place(this.editDiv, this.domNode);
}
this.editor = new Editor(params, this.editDiv);
this.editor.startup();
var feature;
var attInspector = this.editor.attributeInspector;
var theMap = this.editor.settings.map;
theMap.infoWindow._sizers[0].height = 0;
var saveButton = new dijit.form.Button({label:"OK","class":"saveButton"});
dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "before");
saveButton.on("click", function() {
if (feature == null)
alert("Please enter values");
else {
if (feature.attributes["name"] != null) {
feature.attributes["date1"] = Date.now();
theMap.infoWindow.hide();
} else {
alert("Name is a required field");
}
}
});
attInspector.on("attribute-change", function(evt) {
feature = evt.feature;
});
theMap.infoWindow.resize(350, 700);
this.resize();
},
Thanks a lot,
Miri