Make wysiwyg and markdown editors respect readonly
continuous-integration/drone/push Build is passing Details

master
Garrett Mills 3 years ago
parent ab811bb54c
commit b2eb33f6a0
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -71,7 +71,7 @@ export class MarkdownComponent extends EditorNodeContract implements OnInit {
} }
onFocusIn() { onFocusIn() {
this.showEditor = true; this.showEditor = this.editorService.canEdit();
} }
@HostListener('document:keyup.escape', ['$event']) @HostListener('document:keyup.escape', ['$event'])

@ -53,7 +53,7 @@ export class NormComponent extends EditorNodeContract implements OnInit {
} }
onFocusIn(event: MouseEvent) { onFocusIn(event: MouseEvent) {
this.isFocused = true; this.isFocused = this.editorService.canEdit();
} }
@HostListener('document:keyup.escape', ['$event']) @HostListener('document:keyup.escape', ['$event'])

Loading…
Cancel
Save