Skip to content

Gate internal drop handling behind HandleDropInternalContent experiment - #3421

Merged
juliaroldi merged 1 commit into
masterfrom
u/juliaroldi/gate-dnd
Jul 30, 2026
Merged

Gate internal drop handling behind HandleDropInternalContent experiment#3421
juliaroldi merged 1 commit into
masterfrom
u/juliaroldi/gate-dnd

Conversation

@juliaroldi

Copy link
Copy Markdown
Contributor

Summary

Gate the internal drag-and-drop handling in DragAndDropPlugin behind the new HandleDropInternalContent experimental feature. Previously, on a beforeDrop event originating from an internal drag, the plugin always called handleDroppedInternalContent. Now that path only runs when editor.isExperimentalFeatureEnabled('HandleDropInternalContent') returns true, allowing the behavior to be rolled out safely behind a flag. External-content handling is unchanged.

How to test

  1. Run the plugin tests:
    yarn test:fast --testPathPattern=DragAndDropPluginTest
  2. Manual verification:
    • Enable the HandleDropInternalContent experimental feature, perform an internal drag-and-drop within the editor, and confirm the internal content is handled (as before).
    • With the experiment disabled, perform the same internal drag-and-drop and confirm handleDroppedInternalContent is not invoked. External drag-and-drop continues to work regardless of the flag.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@juliaroldi
juliaroldi marked this pull request as ready for review July 30, 2026 21:53
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-30 22:34 UTC

@juliaroldi
juliaroldi merged commit 13b4728 into master Jul 30, 2026
8 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.

2 participants