Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r30b838c2ace64169f440c86a9756fd0959cf2323 -r8d440baa0d18441b56553aabcc56e1981a84b206 --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 30b838c2ace64169f440c86a9756fd0959cf2323) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 8d440baa0d18441b56553aabcc56e1981a84b206) @@ -274,15 +274,19 @@ function learnerAutosave(){ - // if (isWaitingForConfirmation) return; - + //copy value from CKEditor (only available in essay type of questions) to textarea before ajax submit $("textarea[id^='question']").each(function() { var ckeditorData = CKEDITOR.instances[this.name].getData(); //skip out empty values - this.value = ((ckeditorData == null) || (ckeditorData.replace(/ | |
|\s|

|<\/p>|\xa0/g, "").length == 0)) ? "" : ckeditorData; + this.value = ((ckeditorData == null) || (ckeditorData.replace(/ | |
|\s|

|<\/p>|\xa0/g, "").length == 0)) ? "" : ckeditorData; }); + + + // copy value from lams:textarea (only available in essay and mark hedging type of questions) to hidden input before ajax submit + $("textarea[name$=__textarea]").change(); + //ajax form submit $('#answers').ajaxSubmit({ url: "?sessionMapID=${sessionMapID}&date=" + new Date().getTime(), @@ -327,6 +331,10 @@ } } disableButtons(); + + // copy value from lams:textarea (only available in essay and mark hedging type of questions) to hidden input before submit + $("textarea[name$=__textarea]").change(); + var myForm = $("#answers"); myForm.attr("action", "&isTimelimitExpired=" + isTimelimitExpired); myForm.submit();