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.11 -r1.12 --- lams_tool_assessment/web/pages/learning/parts/essay.jsp 12 Dec 2014 00:15:14 -0000 1.11 +++ lams_tool_assessment/web/pages/learning/parts/essay.jsp 8 Aug 2015 16:56:10 -0000 1.12 @@ -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});