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

Markdown Editor Auto-scrolls to top when formatting applied #20160

Open
bolg55 opened this issue Apr 19, 2024 · 0 comments
Open

Markdown Editor Auto-scrolls to top when formatting applied #20160

bolg55 opened this issue Apr 19, 2024 · 0 comments
Labels
flag: EE Issues correlates to internal EE ticket issue: bug Issue reporting a bug severity: high If it breaks the basic use of the product source: core:content-manager Source is core/content-manager package status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@bolg55
Copy link

bolg55 commented Apr 19, 2024

Bug report

Required System information

  • Node.js version: v20
  • NPM version: v10
  • Strapi version: v 4.23
  • Database: N/A
  • Operating system: Mac OS Sonoma
  • Is your project Javascript or Typescript: JS

Describe the bug

When adding formatting, such as an unordered list or code snippet to the markdown editor, if the content overflows and is scrollable, you get auto-scrolled to the top of the editor.

Steps to reproduce the behavior

  1. Create a new content type or use existing with the Rich Text (markdown) editor
  2. Add in enough dummy content to make the editor scrollable.
  3. Scroll down a bit and format some content into a list or add a code snippet by clicking the appropriate buttons
  4. See that you are auto-scrolled to the top of the page.

See GIF below for clarity

Expected behavior

Formatting should be applied without being scrolled to the top.

Screenshots

wysiwyg_autoscroll

Code snippets

If applicable, add code samples to help explain your problem.

Additional context

Add any other context about the problem here.

@bolg55 bolg55 added issue: bug Issue reporting a bug severity: high If it breaks the basic use of the product status: confirmed Confirmed by a Strapi Team member or multiple community members source: core:content-manager Source is core/content-manager package flag: EE Issues correlates to internal EE ticket labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: EE Issues correlates to internal EE ticket issue: bug Issue reporting a bug severity: high If it breaks the basic use of the product source: core:content-manager Source is core/content-manager package status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
Status: To be reviewed
Status: Reproducible on v4
Development

No branches or pull requests

1 participant