ngx-quill
ngx-quill copied to clipboard
Unable to update html from controller
<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'))