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 {