From 32516b162e5f719ccc86e0dfcc40654a8eb17390 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 31 Dec 2013 15:52:15 -0500 Subject: [PATCH] Update textarea before saving/sending HTML message --- UI/WebServerResources/UIxMailEditor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index 24fc7c568..f088b7ee4 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -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) {