Make wysiwyg and markdown editors respect readonly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Garrett Mills 2020-11-02 22:36:20 -06:00
parent ab811bb54c
commit b2eb33f6a0
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 2 additions and 2 deletions

View File

@ -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'])

View File

@ -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'])