-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run clipboard matchers against plain text pastes
At the moment, if the clipboard pastes `text/plain` content and no `text/html` content, the `Clipboard.convert()` function will completely skip the matching logic. This is surprising when registering text node clipboard matchers. This change updates the `convert()` function to change the plain text into basic HTML, which is passed through the matchers. The conversion interprets newlines as paragraph `<p>` elements, consistent with Quill's existing behaviour.
- Loading branch information
1 parent
b3d1532
commit 870c18c
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters