nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.16k stars 1.75k forks source link

Editor scrolls while copy->paste long content #2480

Open ats1999 opened 2 years ago

ats1999 commented 2 years ago

Describe the bug

I copied a large amount of code and pasted it, it automatically scrolls the page.

To Reproduce

Steps to reproduce the behavior: Watch the below video.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

https://user-images.githubusercontent.com/54087826/166146999-89c7ae8b-33bb-464e-a0a5-b1d0db8e72ed.mov

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

jwlee1108 commented 2 years ago

@ats1999 Thank you for the issue. and sorry for the late reply. It looks like a scroll propagation. I'll check it.

lincolnturley commented 5 days ago

This is likely very a result of Prosemirror issue 1028

I was able to come up with a workaround by applying the change from this commit

Along withapplying style 'position:sticky;' to a parent of the editor to halt additional scrolling.