Fix cloze duplication and refactor getClozeChildElements method
Makes more sense logically to pass the cloze element as a whole instead of just the document. Knowing about the document is the responsibility of the method not the caller.
Showing
- projects/common/components/ui-elements/cloze.component.ts 1 addition, 1 deletionprojects/common/components/ui-elements/cloze.component.ts
- projects/common/services/sanitization.service.ts 1 addition, 1 deletionprojects/common/services/sanitization.service.ts
- projects/common/util/cloze.ts 3 additions, 2 deletionsprojects/common/util/cloze.ts
- projects/editor/src/app/services/unit.service.ts 2 additions, 2 deletionsprojects/editor/src/app/services/unit.service.ts
Loading
Please register or sign in to comment