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

Fix clipboard image pasting #2384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Maksim-Nikolaev
Copy link

Description

Fix clipboard image pasting by checking if "onImagePaste" and/or "onGifPaste" handlers are provided in the clipboardConfig before handling the plainText (since it is not null if image/gif is present).

Related Issues

Type of Change

  • Feature: New functionality without breaking existing features.
  • 🛠️ Bug fix: Resolves an issue without altering current behavior.
  • 🧹 Refactor: Code reorganization, no behavior change.
  • Breaking: Alters existing functionality and requires updates.
  • 🧪 Tests: New or modified tests
  • 📝 Documentation: Updates or additions to documentation.
  • 🗑️ Chore: Routine tasks, or maintenance.
  • Build configuration change: Build/configuration changes.

Video demonstration:

Behavior before:

broken.mp4

Behavior after:

fixed.mp4

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.

Clipboard image pasting not working correctly due to plainText check before
1 participant