Browse Source

Make wysiwyg and markdown editors respect readonly

master
Garrett Mills 3 months ago
parent
commit
b2eb33f6a0
Signed by: garrettmills GPG Key ID: D2BF5FBA8298F246
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/app/components/nodes/markdown/markdown.component.ts
  2. +1
    -1
      src/app/components/nodes/norm/norm.component.ts

+ 1
- 1
src/app/components/nodes/markdown/markdown.component.ts 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'])


+ 1
- 1
src/app/components/nodes/norm/norm.component.ts 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'])


Loading…
Cancel
Save