ngx-quill icon indicating copy to clipboard operation
ngx-quill copied to clipboard

Unable to update html from controller

Open dodomui opened this issue 11 months ago • 0 comments

<quill-editor class="full-width" format="html" sanitize="true" [(ngModel)]="msg></quill-editor> <quill-editor format="html" sanitize="true" formControlName="msg"></quill-editor>

When set format to 'html', unable to set value from component, it always show blank. Tried set sanitize to both true and false, also ried domSanitizer from component but none of it works, all showing blank.

It works only when I set format to 'text', but this doesn't serve my purpose, I need pass 'html' format.

this.form.controls.msg.setValue(this.domSanitizer.bypassSecurityTrustHtml('test'))

dodomui avatar Feb 27 '24 12:02 dodomui