Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏷️ Add overload for Clipboard.dangerouslyPasteHTML() #3734

Merged
merged 1 commit into from Jun 2, 2023

Conversation

alecgibson
Copy link
Contributor

Clipboard.dangerouslyPasteHTML() is allowed to be called without an index as its first argument.

At the moment, doing this results in a compilation error:

(method) Clipboard.dangerouslyPasteHTML(index: number, html: string, source?: EmitterSource): void
Expected 2-3 arguments, but got 1.ts(2554)

This change adds the overload to allow this.

`Clipboard.dangerouslyPasteHTML()` is allowed to be called without an
index as its first argument.

At the moment, doing this results in a compilation error:

```
(method) Clipboard.dangerouslyPasteHTML(index: number, html: string, source?: EmitterSource): void
Expected 2-3 arguments, but got 1.ts(2554)
```

This change adds the overload to allow this.
@luin luin merged commit b3d1532 into quilljs:develop Jun 2, 2023
@alecgibson alecgibson deleted the dangerously-paste-html branch June 2, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants