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:
Zach Wily 2011-08-26 14:44:43 -06:00
parent f394576f82
commit 59c15dc864
1 changed files with 3 additions and 0 deletions

View File

@ -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();
},