Skip to content
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

When cursor is not in view and paste is done, editor doesn't scroll to the pasted content automatically #983

Closed
shaox119 opened this issue Jun 6, 2023 · 0 comments

Comments

@shaox119
Copy link

shaox119 commented Jun 6, 2023

Tested in Jodit Playground

Browser: Chrome
OS: Mac

Setting maxHeight to 600 to get a scroll bar.

Expected behavior:
When doing a paste and the cursor is outside the view, expecting the editor to scroll to cursor position (or scroll the pasted content into view).

Actual behavior:
The content is pasted but the view stays where it was. Will need to manually located the added content. However, when doing "enter/return" (keyboard action), the editor would scroll to the cursor position where a new line is added. Didn't find any config that seems to be related to this issue.

Besides, even when the cursor is in view when pasting a large amount of content, would be great to automatically scroll to the end of the pasted content, or maybe allow customize option to choose whether to scroll or not.

xdan added a commit that referenced this issue Jun 30, 2023
@xdan xdan closed this as completed Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants