Skip to content
Snippets Groups Projects
Commit 696718b3 authored by rhenck's avatar rhenck
Browse files

Fix cloze element re-generating all child elements on load

The player is supposed to take all the elements already defined and 
generated in the editor. Therefore the call to generate all elements 
from the text is not a general thing but specialized for the editor.

Right now the editor does no longer generate the cloze parts on load but 
only when the text prop has been touched.
parent 460f9aa3
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,6 @@ export class ClozeElement extends CompoundElement implements FontElement {
super(serializedElement);
Object.assign(this, serializedElement);
Object.assign(this, initFontElement(serializedElement));
this.createParts(this.text as string);
this.height = 200;
this.width = 500;
}
......
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