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

Switching to source editing scrolls to the end of the content #10180

Closed
Reinmar opened this issue Jul 19, 2021 · 3 comments Β· Fixed by #10288
Closed

Switching to source editing scrolls to the end of the content #10180

Reinmar opened this issue Jul 19, 2021 · 3 comments Β· Fixed by #10288
Assignees
Labels
package:source-editing type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Reinmar
Copy link
Member

Reinmar commented Jul 19, 2021

πŸ“ Provide detailed reproduction steps (if any)

  1. Have some visibly long content in the editor
  2. Be at the beginning of it
  3. Click the "Source editing" button

βœ”οΈ Expected result

The scroll either stays intact or scrolls to the top.

❌ Actual result

The scroll moves to the end of the content.


If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

@Reinmar Reinmar added type:bug This issue reports a buggy (incorrect) behavior. package:source-editing squad:compat labels Jul 19, 2021
@Reinmar Reinmar added this to the nice-to-have milestone Jul 19, 2021
@Reinmar
Copy link
Member Author

Reinmar commented Jul 28, 2021

To be checked: How it works in CKEditor 4.

@Mgsy Mgsy modified the milestones: nice-to-have, iteration 46 Jul 29, 2021
@maxbarnas
Copy link
Contributor

Just checked how this feature behaves in CKE4

  • Default Source Editing Area (which resembles Source Editing in CKE5 the most) always scrolls to the top,
  • Source Dialog always scrolls to the end of the text.

@maxbarnas
Copy link
Contributor

maxbarnas commented Aug 2, 2021

The point # 4 explains current behavior of textarea: https://html.spec.whatwg.org/multipage/form-elements.html#dom-textarea-value

psmyrek added a commit that referenced this issue Aug 3, 2021
Fix (source-editing): Selection is now set at the beginning of the source editing view. Closes #10180.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:source-editing type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants