From 7125fe83150470dd7abec44d6ba166596a81ad69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bengt=20Wei=C3=9Fe?= Date: Thu, 20 Jun 2024 09:17:56 +0200 Subject: [PATCH] fix: do not pass defaultEmptyValue to quill --- projects/ngx-quill/src/lib/quill-editor.component.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/projects/ngx-quill/src/lib/quill-editor.component.ts b/projects/ngx-quill/src/lib/quill-editor.component.ts index be71a578..f567864d 100644 --- a/projects/ngx-quill/src/lib/quill-editor.component.ts +++ b/projects/ngx-quill/src/lib/quill-editor.component.ts @@ -286,12 +286,6 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce readOnly = this.service.config.readOnly !== undefined ? this.service.config.readOnly : false } - let defaultEmptyValue = this.defaultEmptyValue - // eslint-disable-next-line no-prototype-builtins - if (this.service.config.hasOwnProperty('defaultEmptyValue')) { - defaultEmptyValue = this.service.config.defaultEmptyValue - } - let formats = this.formats() if (!formats && formats === undefined) { formats = this.service.config.formats ? [...this.service.config.formats] : (this.service.config.formats === null ? null : undefined) @@ -305,7 +299,6 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce modules, placeholder, readOnly, - defaultEmptyValue, registry: this.registry(), theme: this.theme() || (this.service.config.theme ? this.service.config.theme : 'snow') }) @@ -524,10 +517,6 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce this.quillEditor.root.dataset.placeholder = changes.placeholder.currentValue } - if (changes.defaultEmptyValue) { - this.quillEditor.root.dataset.defaultEmptyValue = - changes.defaultEmptyValue.currentValue - } if (changes.styles) { const currentStyling = changes.styles.currentValue const previousStyling = changes.styles.previousValue