From 2e1d13d7abe0bcbc12841e2d80865193f7bcd223 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Thu, 20 Jan 2022 15:00:47 +0100
Subject: [PATCH] [editor] Disable font field

Since we can't safely assume any other font than the one we ship is
available, it is better to not allow changing this.

I have not removed the variable completely as in the futire more than
one font might be wanted. So for now you just can't choose another.
---
 .../properties-panel/element-style-properties.component.ts      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-style-properties.component.ts b/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-style-properties.component.ts
index 07a5ef3fb..3b647c4dd 100644
--- a/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-style-properties.component.ts
+++ b/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-style-properties.component.ts
@@ -80,7 +80,7 @@ import { UIElement } from '../../../../../../../common/models/uI-element';
       <mat-form-field *ngIf="combinedProperties.font !== undefined"
                       appearance="fill" class="mdInput textsingleline">
         <mat-label>{{'propertiesPanel.font' | translate }}</mat-label>
-        <input matInput type="text" [value]="combinedProperties.font"
+        <input matInput type="text" [value]="combinedProperties.font" disabled
                (input)="updateModel.emit({ property: 'font', value: $any($event.target).value })">
       </mat-form-field>
       <mat-form-field *ngIf="combinedProperties.fontSize !== undefined"
-- 
GitLab