Hi there.
I use some methods to automaticly save the windows content while closing. One of the tasks I do there is sending the content of my TextBoxes to hidden fields within my parent form:
This works fine with txtMailSubject, JSmailId and txtMailTo which are all Textboxes. But I cannot reach the content of the "EditorMailBody2" which is a radeditor. The .Text property is undefined, also is the .Content-Property.
The .innerHtml-Property is filled but does not contain what I need. I'm searching for the "simple" Text-content of that editor.
Any hints?
I use some methods to automaticly save the windows content while closing. One of the tasks I do there is sending the content of my TextBoxes to hidden fields within my parent form:
| function OnClosePostBack() { |
| // Automatisches Speichern der Email beim Schließen (Entwurf) |
| var parent_recipients = window.parent.theForm.ctl00$ContentPlaceHolderBody$Email_Recipients; |
| var parent_subject=window.parent.theForm.ctl00$ContentPlaceHolderBody$Email_Subject; |
| var parent_body=window.parent.theForm.ctl00$ContentPlaceHolderBody$Email_Body; |
| var parent_id=window.parent.theForm.ctl00$ContentPlaceHolderBody$Email_Id; |
| var thisSubject = document.getElementById("txtMailSubject"); |
| var thisMailId = document.getElementById("JSmailId"); |
| var thisRecipients = document.getElementById("txtMailTo"); |
| var thisBody = document.getElementById("EditorMailBody2"); |
| parent_recipients.value=thisRecipients.value; |
| parent_subject.value=thisSubject.value; |
| parent_body.value=thisBody.Content; |
| parent_id.value=thisMailId.value; |
| } |
This works fine with txtMailSubject, JSmailId and txtMailTo which are all Textboxes. But I cannot reach the content of the "EditorMailBody2" which is a radeditor. The .Text property is undefined, also is the .Content-Property.
The .innerHtml-Property is filled but does not contain what I need. I'm searching for the "simple" Text-content of that editor.
Any hints?