fixed validation issue on rich text editor

This commit is contained in:
Sofia Papacharalampous 2024-05-01 16:57:21 +03:00
parent 803e63dd41
commit 5f36ebe3ca
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import { Subscription } from "rxjs";
template: `
<div class="editor-wrapper" [class]="wrapperClasses">
<angular-editor class="full-width editor" [ngClass]="editable ? '': 'disabled'" [id]="id"
[config]="editorConfig" [formControl]="form" [required]="form.value ? false : required"
[config]="editorConfig" [formControl]="form" [required]="required"
placeholder="{{(placeholder? (placeholder | translate) : '') + (required ? ' *': '')}}"
(paste)="pasteWithoutFormatting($event)"></angular-editor>
<mat-icon *ngIf="form.value && editable" (click)="parentFormGroup.get(controlName).patchValue('')" class="clear">close</mat-icon>