rich-text-editor.component.ts: Removed "backgroundColor" from toolbarHiddenButtons | Do not show (x) close to clear the input when editable is false.

This commit is contained in:
Konstantina Galouni 2023-06-16 14:10:52 +03:00
parent 2aa1f76aab
commit 985b3de385
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import {FormControl} from "@angular/forms";
[config]="editorConfig" [formControlName]="controlName"
placeholder="{{(placeholder? (placeholder | translate) : '') + (required ? ' *': '')}}"
(paste)="pasteWithoutFormatting($event)"></angular-editor>
<mat-icon *ngIf="formInput.value" (click)="formInput.patchValue('')" class="clear">close</mat-icon>
<mat-icon *ngIf="formInput.value && editable" (click)="formInput.patchValue('')" class="clear">close</mat-icon>
</div>
`,
styleUrls: ['./rich-text-editor.component.scss']
@ -56,7 +56,7 @@ export class RichTextEditorComponent {
],
[
'fontSize',
'backgroundColor',
// 'backgroundColor',
// 'customClasses',
'insertImage',
'insertVideo',