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 { ...@@ -115,13 +115,10 @@ public class FIBEditorController extends FormBasicController {
if(!hasNumericals && !hasTexts) { if(!hasNumericals && !hasTexts) {
if(preferredType == QTI21QuestionType.numerical) { if(preferredType == QTI21QuestionType.numerical) {
hasNumericals = true; hasNumericals = true;
hasTexts = false;
} else if(preferredType == QTI21QuestionType.fib) { } else if(preferredType == QTI21QuestionType.fib) {
hasNumericals = false; hasNumericals = false;
hasTexts = true;
} else { } else {
hasNumericals = true; hasNumericals = true;
hasTexts = true;
} }
} }
if(hasNumericals) { if(hasNumericals) {
...@@ -129,7 +126,7 @@ public class FIBEditorController extends FormBasicController { ...@@ -129,7 +126,7 @@ public class FIBEditorController extends FormBasicController {
} else { } else {
setFormContextHelp("Test editor QTI 2.1 in detail#details_testeditor_fragetypen_fib"); setFormContextHelp("Test editor QTI 2.1 in detail#details_testeditor_fragetypen_fib");
} }
richTextConfig.enableQTITools(hasTexts, hasNumericals, false); richTextConfig.enableQTITools(true, true, false);
// Submit Button // Submit Button
FormLayoutContainer buttonsContainer = FormLayoutContainer.createButtonLayout("buttons", getTranslator()); 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