Commit fe747e34 by Hasnain Committed by Bill Filler

small fix of removing prompt.

parent e1acd367
......@@ -109,7 +109,11 @@ OpenAssessment.Prompt.prototype = {
}
var newElId = Date.now() + '-textarea-' + (Math.random() * 100);
$(textarea).attr('id', newElId).tinymce(tinymceCfg());
window.tinyMCE.get(newElId).focus();
newEl = window.tinyMCE.get(newElId);
if (newEl) {
newEl.focus();
}
}
return $(el);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment