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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to split paragraphs in half with drag and drop #120

Open
Michael-Grover opened this issue Jun 22, 2020 · 15 comments
Open

Possible to split paragraphs in half with drag and drop #120

Michael-Grover opened this issue Jun 22, 2020 · 15 comments

Comments

@Michael-Grover
Copy link

Michael-Grover commented Jun 22, 2020

Bug Report 馃悰

Dragging and dropping a Clause Template into the margins to the left or right of a paragraph allows the Clause Template to split the paragraph in half.

Expected Behavior

The Clause Template should be placed before or after the paragraph

Current Behavior

https://www.loom.com/share/329b20b14ecf4cd9854d31dba93b5e92

Possible Solution

Steps to Reproduce

  1. drag Clause Template
  2. drop into margin in the middle of paragraph
  3. paragraph is split in half
@irmerk
Copy link
Member

irmerk commented Jun 25, 2020

This can be undone and also fixed manually, so not super serious.

@DianaLease playing with the CSS in the demo, I think this is because the drop point is in the padding of ap-rich-text-editor. Could we maybe just switch to margin instead?

@gatij10
Copy link
Contributor

gatij10 commented Feb 25, 2021

@Michael-Grover is this issue still open? I would like to work on it.

@irmerk
Copy link
Member

irmerk commented Feb 25, 2021

@gatij10 test it out in the live Storybook and see if the issue still exists.

@gatij10
Copy link
Contributor

gatij10 commented Feb 25, 2021

@irmerk I tested it out in the live storybook, looks like the issue still exists. I will try to solve it.

@Cronus1007
Copy link
Contributor

@Michael-Grover @irmerk Since the issue exists in the live storybook so shall I work upon this issue.

@Cronus1007
Copy link
Contributor

Cronus1007 commented Mar 17, 2021

@DianaLease playing with the CSS in the demo, I think this is because the drop point is in the padding of ap-rich-text-editor. Could we maybe just switch to margin instead?

@irmerk This one is not working.The problem may arise bcoz there is not any type of function which handles drop. So what I intend to do is write the handleDrop function to handle the Drop. Does it sound good to proceed?

@irmerk
Copy link
Member

irmerk commented Mar 17, 2021

I think @DianaLease is more familiar with this code and can be of more help at the moment. I won't have a chance to look into this for a bit.

@DianaLease
Copy link
Member

hi @Cronus1007 . The logic that handles drop for the contract editor is here:

This function is passed to the MarkdownEditor as a prop where it gets called whenever a drop event fired.

@Michael-Grover
Copy link
Author

I'm cleaning up old issues I created, and it looks like this one hasn't been resolved, so I'm keeping it open in case a hacktoberfest 2021 participant wants to give it a shot

@vikasazad
Copy link

Hi @irmerk I wanted to work on this..?

@TC5022
Copy link
Contributor

TC5022 commented Dec 6, 2021

Hello @irmerk , may I work on this issue, if it's still open?

@vikasazad
Copy link

Hi @irmerk @DianaLease where i can ask doubts regarding the problem cause slack link is offline...?

@Michael-Grover
Copy link
Author

Hi @vikasazad , the Accord Project now uses Discord instead of Slack, you can join at this link: https://discord.gg/xPPT3gVt

If you have questions about this issue, you can add them as a reply to this github issue

@irmerk
Copy link
Member

irmerk commented Dec 21, 2021

I'll assign this to someone when there is a work in progress PR on it.

@anmode
Copy link

anmode commented Jan 25, 2022

Hey! This is issue still exist in the storybook live demo and I had checked the code base of contract editor. I am unable to identify the what causing this issue, need some guidance please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants