submit : function(e) {
var src = this.inputs['src'].value;
if(src == "" || src == "http://") {
alert("You must enter a Image URL to insert");
return false;
}
this.removePane();
if(!this.im) {
var tmp = 'javascript:nicImTemp();';
this.ne.nicCommand("insertImage",tmp);
this.im = this.findElm('IMG','src',tmp);
}
if(this.im) {
this.im.setAttributes({
src : this.inputs['src'].value,
alt : this.inputs['alt'].value,
align : this.inputs['align'].value
});
*!*
if ((/left|right/).test(this.inputs['align'].value)) {
var style = {};
style["margin" + (this.inputs['align'].value == "left" ? "Right" : "Left")] = "10px";
this.im.setStyle(style);
}
*/!*
}
}