-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use drop zone when dragging an image to an empty paragraph #29145
Comments
Hello ) I will help to fix this |
Hi, @Quintis1212 Let me know if you need any help with this. |
Hi @Mamaduka ) I still do not understand where is the source of this bug ) please read my comment above . From where I must start to fix this bug |
Hi, @Quintis1212 can you share the code you're using for testing? Currently, I don't see the dropzone component in the paragraph block. |
@Mamaduka console.trace() showed me that dropzone component is called by provider :
` |
Hi @Quintis1212, Sorry for the confusion. I meant code for PR where you added dropzone to a paragraph block. P.S. You can also use the |
Hi @Mamaduka ) Sorry for the confusion. I meant code for PR where you added dropzone to a paragraph block. I dont created a PR because I create PR when I have at least one approach to fix the problem .If you want get my test code for this bug just copy all code above in my comment in provider.js) I don't do any changes to another files for this issue |
Drag and drop of image onto an empty paragraph block would/should look similar to dragging and dropping an image onto an existing image. Like so: Drag-drop-image-on-image.mp4 |
I want to make sure that I understand this correctly. When you use the empty paragraph example in the issue comment, is that a single paragraph block that has empty new shift+return lines in it? I ask because If a user creates space between two paragraph blocks, they are going to insert multiple empty block placeholders like this: So should the drop zone sit over top of the height of those empty block placeholders (shown with the green outline), and replace them once dropped? My thought is yes, because it seems like the most common situation based on people mashing the return key. |
Feedback from Matías is that it should just stick to covering one paragraph/empty block at a time. |
Drop zones for one paragraph/empty block at a time sound right! As it would give a more precise zone to where something is being dropped. Btw there are a few existing drop zone issues. I noticed @richtabor has created a few. Add visual cue when dragging a block into an empty Group block |
It should be possible to drag an image to an empty paragraph. Instead of this:
We should show something like this (fitting the empty paragraph size):
The text was updated successfully, but these errors were encountered: