diff --git a/projects/editor/src/app/services/unit.service.ts b/projects/editor/src/app/services/unit.service.ts index a4ed699fa7665598760fbbcf5cc59785de350068..ce26bfb892cde3543556efbd960ed72093e2edda 100644 --- a/projects/editor/src/app/services/unit.service.ts +++ b/projects/editor/src/app/services/unit.service.ts @@ -260,6 +260,7 @@ export class UnitService { element.setProperty('id', value); } else if (property === 'text' && element.type === 'cloze') { element.setProperty('parts', ClozeParser.createClozeParts(value as string, this.idService)); + element.setProperty('text', value); } else { element.setProperty(property, Copy.getCopy(value)); }