Update textarea before saving/sending HTML message

This commit is contained in:
Francis Lachapelle
2013-12-31 15:52:15 -05:00
parent a8e780516b
commit 32516b162e
+2
View File
@@ -188,6 +188,7 @@ function onPostComplete(http) {
function clickedEditorSend() {
onValidate(function() {
CKEDITOR.instances.text.updateElement();
triggerAjaxRequest(document.pageform.action,
onPostComplete,
null,
@@ -233,6 +234,7 @@ function clickedEditorSave() {
window.shouldPreserve = true;
document.pageform.action = "save";
CKEDITOR.instances.text.updateElement();
triggerAjaxRequest(document.pageform.action, function (http) {
if (http.readyState == 4) {