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

Desktop: Allow creating plugins that process pasted text in the beta editor #10310

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Apr 13, 2024

Summary

This pull request adds the input.paste user event to insertText calls while pasting into the beta markdown editor.

Notes:

Testing plan

Regression testing (for insertText):

  1. Verify that paste still works:
    • Take a screenshot and paste it into the beta editor.
    • Copy text from the beta editor, paste it into the beta editor.
  2. Verify that insertText still works
    • Attach a file using the toolbar button (which uses insertText to include the link).

Notes:

  • insertText has automated tests in CodeMirrorControl.test.ts

@personalizedrefrigerator personalizedrefrigerator changed the title Desktop: Plugins: Make it possible to process paste events in the beta editor Desktop: Allow creating plugins that process pasted text in the beta editor Apr 13, 2024
@laurent22 laurent22 merged commit 035557d into laurent22:dev Apr 15, 2024
10 checks passed
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