From 009cfccb2c8ea94e5a235964c4214553ac54c299 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 3 Jan 2014 14:33:27 -0500 Subject: [PATCH] Fix JS error when saving/sending plain text msg --- UI/WebServerResources/UIxMailEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index f088b7ee4..276d4172b 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -188,7 +188,7 @@ function onPostComplete(http) { function clickedEditorSend() { onValidate(function() { - CKEDITOR.instances.text.updateElement(); + if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement(); triggerAjaxRequest(document.pageform.action, onPostComplete, null, @@ -234,7 +234,7 @@ function clickedEditorSave() { window.shouldPreserve = true; document.pageform.action = "save"; - CKEDITOR.instances.text.updateElement(); + if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement(); triggerAjaxRequest(document.pageform.action, function (http) { if (http.readyState == 4) {