Make wysiwyg and markdown editors respect readonly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ab811bb54c
commit
b2eb33f6a0
@ -71,7 +71,7 @@ export class MarkdownComponent extends EditorNodeContract implements OnInit {
|
||||
}
|
||||
|
||||
onFocusIn() {
|
||||
this.showEditor = true;
|
||||
this.showEditor = this.editorService.canEdit();
|
||||
}
|
||||
|
||||
@HostListener('document:keyup.escape', ['$event'])
|
||||
|
@ -53,7 +53,7 @@ export class NormComponent extends EditorNodeContract implements OnInit {
|
||||
}
|
||||
|
||||
onFocusIn(event: MouseEvent) {
|
||||
this.isFocused = true;
|
||||
this.isFocused = this.editorService.canEdit();
|
||||
}
|
||||
|
||||
@HostListener('document:keyup.escape', ['$event'])
|
||||
|
Loading…
Reference in New Issue
Block a user