From 6e60bbb553ca0a109408d35a5bec760189f67a67 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 4 Apr 2014 16:47:46 -0400 Subject: [PATCH] Fix saved HTML content of draft uploading a file --- NEWS | 6 ++++++ UI/WebServerResources/UIxMailEditor.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 2ff80d636..74184adbc 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +2.2.4 (2014-MM-DD) +------------------ + +Bug fixes + - fixed saved HTML content of draft when attaching a file + 2.2.3 (2014-04-03) ------------------ diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index b442b50e1..91afb075c 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -424,6 +424,8 @@ function configureAttachments() { var attachment = createAttachment(file); if (attachment) { file.attachment = attachment; + // Update the text field when using HTML mode + if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement(); data.submit(); } if (dropzone.is(":visible"))