Use CKEditor resize method in order to resize mail body

This commit is contained in:
Hadi Nategh 2015-02-23 15:56:33 +00:00
parent 9fe27c116d
commit c45afda8b0

View File

@ -3750,9 +3750,9 @@ app.classes.mail = AppJS.extend(
{ {
textArea.set_height(bodySize); 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 else
{ {