Skip to content
Snippets Groups Projects
Commit 7c5c367d authored by rhenck's avatar rhenck
Browse files

Delete old properties from cloze after compat handling

parent e27660f9
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,8 @@ export class ClozeElement extends CompoundElement implements PositionedElement,
const newText = ClozeElement.replaceElementMarkers(serializedElement.text);
const newDocument = ClozeElement.createClozeDocument(newText);
this.document = ClozeElement.createDocumentModels(newDocument, childModels);
console.log('this compatible document', this.document);
delete this.text;
delete this.parts;
}
static replaceElementMarkers(text: string): string {
......
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