Index: lams_tool_laqa/web/authoring/newQuestionBox.jsp =================================================================== diff -u -r2357c59f32887145d7b1d281f57b9a3b60dd359c -r7705619f9846910e009c396d8f157f9cfe07c68e --- lams_tool_laqa/web/authoring/newQuestionBox.jsp (.../newQuestionBox.jsp) (revision 2357c59f32887145d7b1d281f57b9a3b60dd359c) +++ lams_tool_laqa/web/authoring/newQuestionBox.jsp (.../newQuestionBox.jsp) (revision 7705619f9846910e009c396d8f157f9cfe07c68e) @@ -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%">