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
|
||||
color="primary"
|
||||
type="button"
|
||||
*ngIf="!disabled"
|
||||
(click)="apply()"
|
||||
[disabled]="editorControl.invalid || !editorControl.dirty">
|
||||
{{ 'action.apply' | translate }}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user