UI: Fixed mobile editor component in disabled state

This commit is contained in:
Vladyslav_Prykhodko 2024-11-29 16:37:58 +02:00
parent d2cb95d0ce
commit c84cad4c78
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@
<button mat-raised-button
color="primary"
type="button"
*ngIf="!disabled"
(click)="apply()"
[disabled]="editorControl.invalid || !editorControl.dirty">
{{ 'action.apply' | translate }}

View File

@ -54,7 +54,8 @@ export class EditorPanelComponent implements OnInit {
height: 400,
autofocus: false,
branding: false,
promotion: false
promotion: false,
resize: false
};
constructor(private fb: FormBuilder) {
@ -64,6 +65,9 @@ export class EditorPanelComponent implements OnInit {
this.editorControl = this.fb.control(this.content);
if (this.disabled) {
this.editorControl.disable({emitEvent: false});
this.tinyMceOptions.toolbar = false;
this.tinyMceOptions.menubar = false;
this.tinyMceOptions.statusbar = false;
}
}