Index: lams_tool_laqa/web/authoring/newQuestionBox.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/newQuestionBox.jsp,v diff -u -r1.25 -r1.25.2.1 --- lams_tool_laqa/web/authoring/newQuestionBox.jsp 5 Jul 2014 19:32:54 -0000 1.25 +++ lams_tool_laqa/web/authoring/newQuestionBox.jsp 3 Sep 2014 12:52:09 -0000 1.25.2.1 @@ -20,6 +20,16 @@ document.QaAuthoringForm.submit(); } + $(function() { + //change size of an iframe on ckeditor's autogrow + CKEDITOR.instances.newQuestion.on("instanceReady", function(e) { + e.editor.on('resize',function(reEvent){ + var iframe = window.parent.document.getElementById("messageArea"); + iframe.style.height=eval(iframe.contentWindow.document.body.scrollHeight)+'px'; + }); + }); + }); + @@ -176,7 +186,7 @@ + contentFolderID="${qaGeneralAuthoringDTO.contentFolderID}" width="99%">