diff --git a/projects/ngx-wig/src/lib/ngx-wig.component.ts b/projects/ngx-wig/src/lib/ngx-wig.component.ts index 66c1e97..ab1be8b 100644 --- a/projects/ngx-wig/src/lib/ngx-wig.component.ts +++ b/projects/ngx-wig/src/lib/ngx-wig.component.ts @@ -159,7 +159,7 @@ export class NgxWigComponent onPaste(event: ClipboardEvent) { event.preventDefault(); - const text = event.clipboardData?.getData('text/html') ?? ''; + const text = event.clipboardData?.getData('text/html') || event.clipboardData?.getData('text/plain') || ''; if (this._filterService){ this.pasteHtmlAtCaret(this._filterService.filter(text)); } else {