Skip to content
Snippets Groups Projects
Commit c8c454d1 authored by srosse's avatar srosse
Browse files

OO-4084: allow to add both numerical and text entry in gap editor

parent d3d0cfb0
No related branches found
No related tags found
No related merge requests found
......@@ -115,13 +115,10 @@ public class FIBEditorController extends FormBasicController {
if(!hasNumericals && !hasTexts) {
if(preferredType == QTI21QuestionType.numerical) {
hasNumericals = true;
hasTexts = false;
} else if(preferredType == QTI21QuestionType.fib) {
hasNumericals = false;
hasTexts = true;
} else {
hasNumericals = true;
hasTexts = true;
}
}
if(hasNumericals) {
......@@ -129,7 +126,7 @@ public class FIBEditorController extends FormBasicController {
} else {
setFormContextHelp("Test editor QTI 2.1 in detail#details_testeditor_fragetypen_fib");
}
richTextConfig.enableQTITools(hasTexts, hasNumericals, false);
richTextConfig.enableQTITools(true, true, false);
// Submit Button
FormLayoutContainer buttonsContainer = FormLayoutContainer.createButtonLayout("buttons", getTranslator());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment