From c45afda8b096c6db0e70b86a5294955750bd4570 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 23 Feb 2015 15:56:33 +0000 Subject: [PATCH] Use CKEditor resize method in order to resize mail body --- mail/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 0cb8550669..96269d9c11 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -3750,9 +3750,9 @@ app.classes.mail = AppJS.extend( { textArea.set_height(bodySize); } - else if (typeof textArea != 'undefined' && textArea.id == 'mail_htmltext' && typeof textArea.getParent().node.children[1] != 'undefined') + else if (typeof textArea != 'undefined' && textArea.id == 'mail_htmltext') { - jQuery(textArea.getParent().node.children[1].children[1].children[1]).css('height',bodySize -90); + textArea.ckeditor.resize('100%', bodySize); } else {