mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-46386 question Whitelist the Atto editor from return blocking
Prevent the question engine from blocking return/enter key presses from being sent to the Atto editor.
This commit is contained in:
parent
5fd0df97c5
commit
84f74ccff6
@ -154,7 +154,7 @@ M.core_question_engine.init_form = function(Y, form) {
|
||||
|
||||
Y.on('key', function (e) {
|
||||
if (!e.target.test('a') && !e.target.test('input[type=submit]') &&
|
||||
!e.target.test('input[type=img]') && !e.target.test('textarea')) {
|
||||
!e.target.test('input[type=img]') && !e.target.test('textarea') && !e.target.test('[contenteditable=true]')) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}, form, 'press:13');
|
||||
|
Loading…
x
Reference in New Issue
Block a user