From 5e482e4782fb905f6d6761a62b5a38ade7939e6f Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Wed, 1 Dec 2021 17:41:28 +0100
Subject: [PATCH] Delete deprecated properties of TextElement

After a unit definition is read, the deprecated properties are deleted.
---
 projects/common/ui-elements/text/text-element.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/projects/common/ui-elements/text/text-element.ts b/projects/common/ui-elements/text/text-element.ts
index 132a0a95a..5daece48f 100644
--- a/projects/common/ui-elements/text/text-element.ts
+++ b/projects/common/ui-elements/text/text-element.ts
@@ -40,8 +40,11 @@ export class TextElement extends UIElement implements PositionedElement, FontEle
       this.highlightableYellow = true;
       this.highlightableTurquoise = true;
       this.highlightableOrange = true;
+      delete this.interaction;
+      delete this.highlightable;
     } else if (serializedElement.interaction === 'underlinable') {
       this.highlightableYellow = true;
+      delete this.interaction;
     }
   }
 }
-- 
GitLab