Skip to content

Commit

Permalink
Fix issue with text/plain insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
svolianskyi committed Jan 10, 2025
1 parent 5c1854c commit 573073a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-wig/src/lib/ngx-wig.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 573073a

Please # to comment.