Skip to content

Comments

fix: 2220 - web clipboard paste#2717

Open
obv-andre wants to merge 3 commits intosingerdmx:masterfrom
obv-andre:fix/2220
Open

fix: 2220 - web clipboard paste#2717
obv-andre wants to merge 3 commits intosingerdmx:masterfrom
obv-andre:fix/2220

Conversation

@obv-andre
Copy link

Description

Describe what this PR does. If modifying behavior, explain the current and new behavior, along with the motivation.
Added back some of the logic from #2009, with modifications:

  • Calls to preventDefault() in the stream callback to prevent double pasting
  • Instead of calling pasteHtml directly, we call clipboardPaste to support falling-back to markdown
  • Added an override in the controller config, fromHtml, in case of complex editor setups

Related Issues

Fix #2220

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.

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.

Rich Text Paste Duplicates Content via HTML & Plain Text on Web

1 participant