-
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 plain text also changes to table format #50
Comments
Pasting html into the quill editor will go through a convert process, which will match the html elements in the clipboard to the blots defined in quill. Because the line in the cell of quill-better-table uses div tags, the div tags pasted from the clipboard are converted into tableCellLine, which causes the situation you encounter. |
Code blocks are usually wrapped in code tags, and paragraphs are wrapped in p tags. However, I do have some unreasonable use of div tags, but this is to distinguish it from the text in quill. |
Well, I understand why, but is there any way to avoid it? Because most of the user's paste is in text format.😢 |
Maybe you can handle the delta of the div tag by add a new matcher. Change the pasted div to normal text. |
Since I made a low-level mistake at the beginning, I wrote |
Hello @soccerloway, the change you mentioned in the README of 1.2.0 (353fa78) unfortunately doesn't work. You can see a live demo here. Here's a preview: I've updated the version in the CodePen to the latest: Thanks for your help. |
Hi @natterstefan , thanks for your report. |
I thinks your above report is about issue #33 . |
Hi, thanks for the feedback. 🤔 this also happens to me when pasting formatted text (e.g. the text in the example is bold), not just with multi-line texts. |
Hello, has this been resolved? I have the same problem :) |
If I paste a copy of my notes on it, or if I paste a block of code on it, it's going to be in table format, but I don't want it in table format.
The text was updated successfully, but these errors were encountered: