From d5653c6968e9e13c8d59d00af0cccde263daaee1 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 27 Oct 2014 19:23:54 +0800 Subject: [PATCH] MDL-47898 mod_quiz: Correct path when checking content_editable Addresses a number of issues when using the text editor in a quiz using secure mode. --- mod/quiz/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/module.js b/mod/quiz/module.js index eea385475a5..d574af77caf 100644 --- a/mod/quiz/module.js +++ b/mod/quiz/module.js @@ -254,7 +254,7 @@ M.mod_quiz.secure_window = { if (n === null) { return false; } - return M.mod_quiz.is_content_editable(n); + return M.mod_quiz.secure_window.is_content_editable(n); }, prevent_selection: function(e) { @@ -271,7 +271,7 @@ M.mod_quiz.secure_window = { // Left click on a button or similar. No worries. return; } - if (e.button == 1 && M.mod_quiz.is_content_editable(e.target)) { + if (e.button == 1 && M.mod_quiz.secure_window.is_content_editable(e.target)) { // Left click in Atto or similar. return; }