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

🐛 Run clipboard matchers against plain text pastes #4002

Closed

Commits on Feb 9, 2024

  1. 🐛 Run clipboard matchers against plain text pastes

    This is a reimplementation of slab#3530
    
    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 match the plain text
    against the plain text matchers, just like we do with HTML.
    
    Note that these matchers will run _before_ applying the formats for
    ["paste and match style"][1], so they won't match an element matchers
    for the target formatting (which I think should be expected anyway).
    
    [1]: slab#3927
    alecgibson committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    a6b3e1e View commit details
    Browse the repository at this point in the history