Skip to content
Snippets Groups Projects
Commit 92c482eb authored by rhenck's avatar rhenck Committed by jojohoch
Browse files

Fix sanitization for cloze children to include all possible types

parent 28ead292
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,8 @@ export class SanitizationService {
} else {
childElements = (element.parts as any[])
.map((el: any) => el
.filter((el2: { type: string; }) => ['text-field', 'drop-list', 'toggle-button'].includes(el2.type)).value)
.filter((el2: { type: string; }) => ['text-field', 'text-field-simple', 'drop-list', 'drop-list-simple', 'toggle-button']
.includes(el2.type)).value)
.flat();
doc = SanitizationService.createClozeDocument(element);
}
......
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