Index: lams_tool_assessment/web/pages/learning/parts/essay.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/pages/learning/parts/essay.jsp,v diff -u -r1.10.2.1 -r1.10.2.2 --- lams_tool_assessment/web/pages/learning/parts/essay.jsp 12 Dec 2014 14:49:32 -0000 1.10.2.1 +++ lams_tool_assessment/web/pages/learning/parts/essay.jsp 8 Aug 2015 16:57:21 -0000 1.10.2.2 @@ -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});