codex-team / codex-team/editor.js

Drop interaction with onPaste function

Open
#1,522 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 13h
Merged PRs (30d)
2

Description

**The question.**
I am working on the gallery plugin that can be populated by dropping images on one its element. I am also using the simple-image plugin that has a onPaste function that interacts with the drop function of my plugin : on dropping the images, they are added to the gallery plugin, but also as new image blocks.

Would there be a solution to prevent the simple-image plugin to be fired when the gallery is used?

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the interaction between the gallery plugin's drop handling and the simple-image plugin's onPaste function. Trace both plugin entry points to determine why one drop creates both a gallery image and a new image block. Done means dropping images into the gallery no longer triggers the simple-image behavior, while normal simple-image paste or drop behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.