diff --git a/apps/web/src/serlo-editor/plugins/fill-in-the-blanks-exercise/renderer.tsx b/apps/web/src/serlo-editor/plugins/fill-in-the-blanks-exercise/renderer.tsx index 001d776e05..a5963f69e1 100644 --- a/apps/web/src/serlo-editor/plugins/fill-in-the-blanks-exercise/renderer.tsx +++ b/apps/web/src/serlo-editor/plugins/fill-in-the-blanks-exercise/renderer.tsx @@ -89,106 +89,106 @@ export function FillInTheBlanksRenderer(props: FillInTheBlanksRendererProps) { return ( // Additional prop 'context={window}' prevents error with nested DndProvider components. See: https://github.com/react-dnd/react-dnd/issues/3257#issuecomment-1239254032 - -
- +
+ + {text} + + {mode === 'drag-and-drop' ? ( + - {text} - - {mode === 'drag-and-drop' ? ( - - {draggables.map((draggable, index) => { - if (locationOfDraggables.get(draggable.draggableId)) return null - return ( - - ) - })} - - ) : null} - - {/* Copied from mc-renderer.tsx */} -
- - {showFeedback && ( - entry[1].isCorrect - )} - /> - )} -
- - {/* Only debug output from here on */} -
- Blanks state: - {blanks.map((blank, index) => ( -
{JSON.stringify(blank)}
- ))} -
-
-
State textUserTypedIntoBlank:
- {[...textUserTypedIntoBlanks].map((entry, index) => { - const blankId = entry[0] - const text = entry[1].text - return ( -
{`Text: ${text} | BlankId: ${blankId}`}
- ) - })} -
-
- {[...locationOfDraggables].map((entry, index) => { - return ( -
- {`DraggableId: ${entry[0]} in blankId: ${entry[1]}`} -
- ) - })} -
-
{draggables.map((draggable, index) => { + if (locationOfDraggables.get(draggable.draggableId)) return null return ( -
- {`DraggableId: ${draggable.draggableId} with text: ${draggable.text}`} -
+ ) })} -
+
+ ) : null} + + {/* Copied from mc-renderer.tsx */} +
+ + {showFeedback && ( + entry[1].isCorrect + )} + /> + )} +
+ + {/* Only debug output from here on */} +
+ Blanks state: + {blanks.map((blank, index) => ( +
{JSON.stringify(blank)}
+ ))} +
+
+
State textUserTypedIntoBlank:
+ {[...textUserTypedIntoBlanks].map((entry, index) => { + const blankId = entry[0] + const text = entry[1].text + return ( +
{`Text: ${text} | BlankId: ${blankId}`}
+ ) + })} +
+
+ {[...locationOfDraggables].map((entry, index) => { + return ( +
+ {`DraggableId: ${entry[0]} in blankId: ${entry[1]}`} +
+ ) + })} +
+
+ {draggables.map((draggable, index) => { + return ( +
+ {`DraggableId: ${draggable.draggableId} with text: ${draggable.text}`} +
+ ) + })}
- +
+ // ) function checkAnswers() {