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.
This commit is contained in:
Andrew Nicols 2014-10-27 19:23:54 +08:00
parent 7c636855e2
commit d5653c6968

View File

@ -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;
}