render the icons on the tinymce editor toolbar better for quiz questions
Change-Id: I9a29c197be0575532dac60b3da94313590eac92a Reviewed-on: https://gerrit.instructure.com/5297 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
f394576f82
commit
59c15dc864
|
@ -124,10 +124,13 @@ I18n.scoped('quizzes', function(I18n) {
|
|||
questionContentCounter: 0,
|
||||
showFormQuestion: function($form) {
|
||||
if(!$form.attr('id')) {
|
||||
// we show and then hide the form so that the layout for the editorBox is computed correctly
|
||||
$form.show();
|
||||
$form.find(".question_content").attr('id', 'question_content_' + quiz.questionContentCounter++);
|
||||
$form.find(".question_content").editorBox();
|
||||
$form.find(".text_after_answers").attr('id', 'text_after_answers_' + quiz.questionContentCounter++);
|
||||
$form.find(".text_after_answers").editorBox();
|
||||
$form.hide();
|
||||
}
|
||||
return $form.show();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue