From 1fd94ec08692dd57864b4983889369bc73f872a3 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Tue, 16 Jul 2024 15:59:28 +0200 Subject: [PATCH] [editor] Adjust template placeholder texts --- .../dialogs/wizards/droplist.dialog.component.ts | 12 +++++++----- .../dialogs/wizards/geometry.dialog.component.ts | 7 ++++--- .../dialogs/wizards/likert.dialog.component.ts | 3 +-- .../dialogs/wizards/text2.dialog.component.ts | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/projects/editor/src/app/components/dialogs/wizards/droplist.dialog.component.ts b/projects/editor/src/app/components/dialogs/wizards/droplist.dialog.component.ts index 77385cd7e..63df42be4 100644 --- a/projects/editor/src/app/components/dialogs/wizards/droplist.dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/wizards/droplist.dialog.component.ts @@ -56,7 +56,8 @@ import { RichTextEditorComponent } from 'editor/src/app/text-editor/rich-text-ed <mat-divider></mat-divider> <h3>Frage/Instruktion</h3> - <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300"></aspect-rich-text-editor> + <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300" + [placeholder]="'Hier steht die Fragestellung.'"></aspect-rich-text-editor> <mat-divider></mat-divider> @@ -111,7 +112,8 @@ import { RichTextEditorComponent } from 'editor/src/app/text-editor/rich-text-ed <mat-panel-title>Sortieren</mat-panel-title> </mat-expansion-panel-header> <h3>Frage/Instruktion</h3> - <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300"></aspect-rich-text-editor> + <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300" + [placeholder]="'Hier steht die Fragestellung.'"></aspect-rich-text-editor> <mat-divider></mat-divider> @@ -163,11 +165,11 @@ import { RichTextEditorComponent } from 'editor/src/app/text-editor/rich-text-ed export class DroplistWizardDialogComponent { variant: 'classic' | 'sort' | undefined; alignment: 'column' | 'row' = 'column'; - text1: string = 'Fragetext Blabla'; - headingSourceList: string = 'heagin 1'; + text1: string = ''; + headingSourceList: string = ''; options: DragNDropValueObject[] = []; optionLength: 'long' | 'medium' | 'short' | 'very-short' | undefined; - headingTargetLists: string = 'heading 2'; + headingTargetLists: string = ''; targetLength: 'long' | 'medium' | 'short' | 'very-short' | undefined; targetLabels: TextLabel[] = []; numbering: boolean = false; diff --git a/projects/editor/src/app/components/dialogs/wizards/geometry.dialog.component.ts b/projects/editor/src/app/components/dialogs/wizards/geometry.dialog.component.ts index 277257731..c4ef1473e 100644 --- a/projects/editor/src/app/components/dialogs/wizards/geometry.dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/wizards/geometry.dialog.component.ts @@ -32,7 +32,8 @@ import { FormsModule } from '@angular/forms'; <div mat-dialog-title>Assistent: GeoGebra</div> <div mat-dialog-content> <h3>Text</h3> - <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300"></aspect-rich-text-editor> + <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300" + [placeholder]="'Hier steht die Fragestellung.'"></aspect-rich-text-editor> <mat-divider></mat-divider> @@ -51,7 +52,7 @@ import { FormsModule } from '@angular/forms'; <h3>Tooltipp</h3> <mat-checkbox [(ngModel)]="showHelper"> - Anzeigen + Tooltipp für Zeichenaufgaben </mat-checkbox> </div> @@ -69,7 +70,7 @@ import { FormsModule } from '@angular/forms'; ` }) export class GeometryWizardDialogComponent { - text1: string = 'Lorem ipsum dolor sit amet'; + text1: string = ''; geometryAppDefinition: string | undefined; text2: string = ''; showHelper: boolean = true; diff --git a/projects/editor/src/app/components/dialogs/wizards/likert.dialog.component.ts b/projects/editor/src/app/components/dialogs/wizards/likert.dialog.component.ts index fa50c30e9..14fe81a5f 100644 --- a/projects/editor/src/app/components/dialogs/wizards/likert.dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/wizards/likert.dialog.component.ts @@ -29,8 +29,7 @@ import { MatButtonModule } from '@angular/material/button'; <div mat-dialog-content> <h3>Text</h3> <aspect-rich-text-editor [(content)]="text1" [style.min-height.px]="300" - [placeholder]="'Hier steht die Frage der fünften Teilaufgabe mit ' + - 'Complex-Multiple-Choice (CMC).'"> + [placeholder]="'Hier steht die Fragestellung.'"> </aspect-rich-text-editor> <mat-divider></mat-divider> diff --git a/projects/editor/src/app/components/dialogs/wizards/text2.dialog.component.ts b/projects/editor/src/app/components/dialogs/wizards/text2.dialog.component.ts index f5ac61efd..d99fdbe8f 100644 --- a/projects/editor/src/app/components/dialogs/wizards/text2.dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/wizards/text2.dialog.component.ts @@ -24,7 +24,7 @@ import { MatButtonModule } from '@angular/material/button'; <div mat-dialog-content> <h3>Text</h3> <aspect-rich-text-editor class="input1" [(content)]="text1" - [placeholder]="'[Frage] Markiere eine Stelle im Text, an der du das erkennst.'"> + [placeholder]="'Hier steht die Fragestellung.'"> </aspect-rich-text-editor> <mat-divider></mat-divider> -- GitLab