-
Notifications
You must be signed in to change notification settings - Fork 121
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
Pasting multiple lines breaks the table #33
Comments
Yes, pasting in table should be processed specially. |
I agree it's quite tricky. What could work is adding a How does this suggestion sound, and please correct me if I'm wrong: Then by using a matcher you let the clipboard itself process it for you into the element you want. Here's the documentation about matchers: https://quilljs.com/docs/modules/clipboard/#addmatcher |
As far as I know, I think the matchers is used to handle that how quill convert DOM element to content, they are always some pure functions, it may not be suitable for this. Here is the code:
|
The delta of multiple lines is merged in only one insertion:
It caused the problem. |
Does any body has any fix or work-around for this issue? |
When copying multiple lines into the table it breaks. I think that due to the clipboard module, each line is seen as a delta insert which does not check against the table and simply inserts it in between.
Here's a GIF that shows what happened:
Here's what the clipboard text/html data returned:
Here's what the clipboard text/plain data returned:
test\ntest
Edit:
This also breaks the showTableTools function
The text was updated successfully, but these errors were encountered: