mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
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:
parent
7c636855e2
commit
d5653c6968
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user