Index: lams_tool_assessment/web/pages/learning/parts/essay.jsp =================================================================== diff -u -r71da0e76045dd5ab9dd29b50944ced6395554359 -r96fd6dca8151163358cff7e355fd3b473ba85484 --- lams_tool_assessment/web/pages/learning/parts/essay.jsp (.../essay.jsp) (revision 71da0e76045dd5ab9dd29b50944ced6395554359) +++ lams_tool_assessment/web/pages/learning/parts/essay.jsp (.../essay.jsp) (revision 96fd6dca8151163358cff7e355fd3b473ba85484) @@ -36,11 +36,8 @@ }; if (${question.allowRichEditor}) { - // @todo Make this more elegant (.on('change') once we upgrade to Ckeditor 4 - CKEDITOR.instances["question${status.index}"].on('paste', counter${status.index}); - CKEDITOR.instances["question${status.index}"].on('afterCommandExec', counter${status.index}); - CKEDITOR.instances["question${status.index}"].on("instanceReady", function(){ - this.document.on("keyup", counter${status.index}); + CKEDITOR.instances["question${status.index}"].on("instanceReady", function(){ + this.on("change", counter${status.index}); }); //count words initially CKEDITOR.instances["question${status.index}"].on('instanceReady', counter${status.index});