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.26 --- lams_tool_laqa/web/authoring/newQuestionBox.jsp 5 Jul 2014 19:32:54 -0000 1.25 +++ lams_tool_laqa/web/authoring/newQuestionBox.jsp 23 Aug 2014 01:43:24 -0000 1.26 @@ -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%">