zenoamaro/react-quill

Custom paste bug

Mass001-he opened this issue · 0 comments

codesandbox:
https://codesandbox.io/p/sandbox/dm79j3

Bug description

Using the browser's copy and paste function, the cursor will jump back to the position before pasting.
After pasting, it is normal to use getSelection (true) to obtain the range, but in the editor-change listening function, this range will automatically become the range before pasting

ReactQuill version