From d47c7169aea0e4153898ee167e034607f7a9d78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20P=C3=B6mp?= Date: Sat, 24 Feb 2024 18:29:02 +0100 Subject: [PATCH] fix(ngx-codejar): turning off readonly not working on FIrefox --- libs/ngx-codejar/src/lib/ngx-code-jar.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ngx-codejar/src/lib/ngx-code-jar.component.ts b/libs/ngx-codejar/src/lib/ngx-code-jar.component.ts index 5c40dff..52449c5 100644 --- a/libs/ngx-codejar/src/lib/ngx-code-jar.component.ts +++ b/libs/ngx-codejar/src/lib/ngx-code-jar.component.ts @@ -21,14 +21,14 @@ import {CommonModule} from '@angular/common'; imports: [CommonModule], selector: 'ngx-codejar', template: ` -
+
         
-
`, +
`, styles: [` :host { display: block; @@ -114,7 +114,7 @@ export class NgxCodeJarComponent implements AfterViewInit, OnChanges, OnDestroy if (this.readonly) { this.renderer.setAttribute(this.editor?.nativeElement, 'contenteditable', 'none'); } else { - this.renderer.setAttribute(this.editor?.nativeElement, 'contenteditable', 'plaintext-only'); + this.renderer.setAttribute(this.editor?.nativeElement, 'contenteditable', 'true'); } } }