protectedBy = "<public>";
pageName = "UIxContactEditor";
};
+ write = {
+ protectedBy = "<public>";
+ pageName = "UIxContactEditor";
+ actionName = "write";
+ };
};
};
};
this.removeClassName("currentAttachment");
var list = $("attachments");
createAttachment(this, list);
+ clickedEditorAttach(null)
}
}
}
function onTextFocus() {
+ var input = currentAttachmentInput();
+ if (input)
+ input.parentNode.removeChild(input);
+}
+
+function onTextFirstFocus() {
var content = this.getValue();
if (content.lastIndexOf("--") == 0) {
this.insertBefore(document.createTextNode("\r\n"),
var length = this.getValue().length - signatureLength - 1;
this.setCaretTo(length);
}
- Event.stopObserving(this, "focus", onTextFocus);
+ Event.stopObserving(this, "focus", onTextFirstFocus);
}
function initMailEditor() {
if (sigLimit > -1)
signatureLength = (textContent.length - sigLimit);
textarea.scrollTop = textarea.scrollHeight;
+ textarea.observe("focus", onTextFirstFocus);
textarea.observe("focus", onTextFocus);
onWindowResize(null);