From 0b39cd8969cc9acedfce89809b2ac5a3cb207c03 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 3 Jul 2024 13:56:23 +0200 Subject: [PATCH] Fix global sanitize property from the quill service --- projects/ngx-quill/src/lib/quill-editor.component.ts | 2 +- projects/ngx-quill/src/lib/quill-view-html.component.ts | 2 +- projects/ngx-quill/src/lib/quill-view.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/ngx-quill/src/lib/quill-editor.component.ts b/projects/ngx-quill/src/lib/quill-editor.component.ts index f567864d..dfaf1975 100644 --- a/projects/ngx-quill/src/lib/quill-editor.component.ts +++ b/projects/ngx-quill/src/lib/quill-editor.component.ts @@ -93,7 +93,7 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce readonly required = input(false) readonly formats = input(undefined) readonly customToolbarPosition = input<'top' | 'bottom'>('top') - readonly sanitize = input(false) + readonly sanitize = input(undefined) readonly beforeRender = input<() => Promise | undefined>(undefined) readonly styles = input(null) readonly registry = input( diff --git a/projects/ngx-quill/src/lib/quill-view-html.component.ts b/projects/ngx-quill/src/lib/quill-view-html.component.ts index cec70784..3beed1aa 100644 --- a/projects/ngx-quill/src/lib/quill-view-html.component.ts +++ b/projects/ngx-quill/src/lib/quill-view-html.component.ts @@ -31,7 +31,7 @@ import { NgClass } from '@angular/common' export class QuillViewHTMLComponent implements OnChanges { readonly content = input('') readonly theme = input(undefined) - readonly sanitize = input(false) + readonly sanitize = input(undefined) readonly innerHTML = signal('') readonly themeClass = signal('ql-snow') diff --git a/projects/ngx-quill/src/lib/quill-view.component.ts b/projects/ngx-quill/src/lib/quill-view.component.ts index 7c4e65db..9f283477 100644 --- a/projects/ngx-quill/src/lib/quill-view.component.ts +++ b/projects/ngx-quill/src/lib/quill-view.component.ts @@ -52,7 +52,7 @@ export class QuillViewComponent implements AfterViewInit, OnChanges, OnDestroy { readonly modules = input(undefined) readonly debug = input<'warn' | 'log' | 'error' | false>(false) readonly formats = input(undefined) - readonly sanitize = input(false) + readonly sanitize = input(undefined) readonly beforeRender = input<() => Promise | undefined>(undefined) readonly strict = input(true) readonly content = input()