quill icon indicating copy to clipboard operation
quill copied to clipboard

Ctrl+A to select and copy text will missing html tag when only single line

Open zzxming opened this issue 1 year ago • 0 comments

Enter a h1 line, then press Ctrl+A to select all the text, and then press Ctrl+C to copy. The type/html in ClipboardEvent.clipboardData does not contain the h1 tag. Multiple h1 line is correct.

I found out that Ctrl+A to select all is not select all delta. It is always less 1 length than quill.getLength(). Is it because delta always end with \n? This maybe the reason why Ctrl+A + Ctrl+C miss the tag.

reproduction

zzxming avatar Jul 18 '24 01:07 zzxming