UI: Fixed mobile editor component in disabled state
This commit is contained in:
parent
d2cb95d0ce
commit
c84cad4c78
@ -28,6 +28,7 @@
|
|||||||
<button mat-raised-button
|
<button mat-raised-button
|
||||||
color="primary"
|
color="primary"
|
||||||
type="button"
|
type="button"
|
||||||
|
*ngIf="!disabled"
|
||||||
(click)="apply()"
|
(click)="apply()"
|
||||||
[disabled]="editorControl.invalid || !editorControl.dirty">
|
[disabled]="editorControl.invalid || !editorControl.dirty">
|
||||||
{{ 'action.apply' | translate }}
|
{{ 'action.apply' | translate }}
|
||||||
|
|||||||
@ -54,7 +54,8 @@ export class EditorPanelComponent implements OnInit {
|
|||||||
height: 400,
|
height: 400,
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
branding: false,
|
branding: false,
|
||||||
promotion: false
|
promotion: false,
|
||||||
|
resize: false
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private fb: FormBuilder) {
|
constructor(private fb: FormBuilder) {
|
||||||
@ -64,6 +65,9 @@ export class EditorPanelComponent implements OnInit {
|
|||||||
this.editorControl = this.fb.control(this.content);
|
this.editorControl = this.fb.control(this.content);
|
||||||
if (this.disabled) {
|
if (this.disabled) {
|
||||||
this.editorControl.disable({emitEvent: false});
|
this.editorControl.disable({emitEvent: false});
|
||||||
|
this.tinyMceOptions.toolbar = false;
|
||||||
|
this.tinyMceOptions.menubar = false;
|
||||||
|
this.tinyMceOptions.statusbar = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user