Skip to content

Commit

Permalink
fix: do not pass defaultEmptyValue to quill
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerCodeMonkey committed Jun 20, 2024
1 parent f3858a9 commit 7125fe8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions projects/ngx-quill/src/lib/quill-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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')
})
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7125fe8

Please sign in to comment.