Skip to content

Commit

Permalink
Merge pull request #229 from svolianskyi/patch-2
Browse files Browse the repository at this point in the history
Fix issue with text/plain insertion
  • Loading branch information
stevermeister authored Jan 10, 2025
2 parents 5c1854c + 573073a commit b67a8f3
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 b67a8f3

Please # to comment.