soccerloway / quill-better-table

Module for better table in Quill, more useful features are supported.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copying and pasting individual H1 tags will not work

kagol opened this issue · comments

commented

Copying and pasting individual H1 tags will not work, but when the H1 tag is copied and pasted with other tags, it is really good.
This problem only appeared in Quill 2.0.0-dev.x, Quill 1.3.6 does not have this problem.

commented

It's really a problem in Quill 2.0.0-dev.x.
We better create an issue in quillJs official repo~
Maybe a PR~

commented

I found it caused by the code in quilljs core/editor.js:
image
getHTML is called in onCopy, and the return html will be cached in clipboard.
It looks like the author handles inline copying and multi-line copying separately, I haven't figured out what the purpose was.
If I remove the if logic statement, copying and pasting individual h1 tag will work.

commented

I have already create a new issue about this in quilljs repo.
Copying and pasting individual H1 tags will not work,
We could dicuss this problem there~

commented

Thank you for your timely response and suggestion, which is very helpful to me.