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

Shift + Enter (soft enter) makes the scroll moves upwards and again downwards. #14976

Closed
Rashid101 opened this issue Sep 12, 2023 · 1 comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Rashid101
Copy link

📝 Provide detailed reproduction steps (if any)

  1. https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html
  2. Open Chrome DevTools and give a fixed height say 105px to the div with class -- ".ck.ck-editor__main"
  3. Clear all the contents of the first demo editor and Start type one word on each line followed by Shift + Enter
  4. As soon as the content starts overflowing and the scroll appears, the scroll will misbehave- it will keep going to the top at alternate shift+enter (say odd times) and keep coming to the bottom on the next alternate shift+enter (say even times).

✔️ Expected result

The scroll should always stay at the bottom of the content

❌ Actual result

The scroll is mis behaving.

  1. On the first Shift +Enter it is moving upwards. (Here is the issue; It should not move upwards)
  2. On the second Shift + Enter it is going to the bottom. (Going to the actual position)

❓ Possible solution

Must be some event getting fired from ckeditor internally due to which it behaves like this.

📃 Other details

  • Browser: Chrome
  • OS: MacOS Ventura
  • First affected CKEditor version: Ckeditor5
  • Installed CKEditor plugins: …

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Rashid101 Rashid101 added the type:bug This issue reports a buggy (incorrect) behavior. label Sep 12, 2023
@Witoso
Copy link
Member

Witoso commented Sep 13, 2023

Duplicate of: #14028. Details why this is happening are in the comments.

@Witoso Witoso closed this as completed Sep 13, 2023
@Witoso Witoso added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Sep 13, 2023
@CKEditorBot CKEditorBot removed the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Sep 13, 2023
@Witoso Witoso added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

3 participants