Page jumps to start when trying to edit code block #937

Closed
opened 2026-02-04 23:04:42 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @slimninja on GitHub (Dec 8, 2018).

Trying to edit a code block after scrolling down in a page.

As soon as I click the code block to edit (first click of double click), the cursor jumps back up to the first line of the page. This is happening in all my pages regardless of number of code blocks or how large they are.

Originally created by @slimninja on GitHub (Dec 8, 2018). Trying to edit a code block after scrolling down in a page. As soon as I click the code block to edit (first click of double click), the cursor jumps back up to the first line of the page. This is happening in all my pages regardless of number of code blocks or how large they are.
OVERLORD added the 🐛 Bug📝 WYSIWYG Editor labels 2026-02-04 23:04:42 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 9, 2018):

Hi @salimnanji, Sorry to hear you're experiencing an issue.

Could you provide any further detail?:

  • What version of BookStack you're experiencing this on?
  • What page editor are you using? (WYSIWYG or Markdown)
  • What browser are you finding this issue on?
@ssddanbrown commented on GitHub (Dec 9, 2018): Hi @salimnanji, Sorry to hear you're experiencing an issue. Could you provide any further detail?: - What version of BookStack you're experiencing this on? - What page editor are you using? (WYSIWYG or Markdown) - What browser are you finding this issue on?
Author
Owner

@slimninja commented on GitHub (Dec 10, 2018):

@ssddanbrown Thanks. Details:

  • BookStack v0.24.3
  • WYSIWYG
  • Google Chrome Version 68.0.3440.106 (Official Build) (32-bit), 71.0.3578.80 (Official Build) (64-bit)

Works in IE.

@slimninja commented on GitHub (Dec 10, 2018): @ssddanbrown Thanks. Details: - BookStack v0.24.3 - WYSIWYG - Google Chrome Version 68.0.3440.106 (Official Build) (32-bit), 71.0.3578.80 (Official Build) (64-bit) Works in IE.
Author
Owner

@aditya-aggarwal-1 commented on GitHub (Jan 4, 2019):

Can confirm, breaking on Google Chrome (Official Latest) as well as Safari. No logs in JS Console.

@aditya-aggarwal-1 commented on GitHub (Jan 4, 2019): Can confirm, breaking on Google Chrome (Official Latest) as well as Safari. No logs in JS Console.
Author
Owner

@slimninja commented on GitHub (Jan 10, 2019):

@ssddanbrown were you able to recreate this bug? Still happening for me:
Google Chrome Version Version 69.0.3497.100 (Official Build) (32-bit)

@slimninja commented on GitHub (Jan 10, 2019): @ssddanbrown were you able to recreate this bug? Still happening for me: Google Chrome Version Version 69.0.3497.100 (Official Build) (32-bit)
Author
Owner

@ssddanbrown commented on GitHub (Jan 11, 2019):

@salimnanji Not before but just had another look and now understand this.

Steps to reproduce

  1. Create a new page with lots of content (In height) at start of page.
  2. Add a code block to the bottom.
  3. Click code block, See editor cursor jump to top.

Will try to fit into the next release or at least one soon after.

@ssddanbrown commented on GitHub (Jan 11, 2019): @salimnanji Not before but just had another look and now understand this. ### Steps to reproduce 1. Create a new page with lots of content (In height) at start of page. 2. Add a code block to the bottom. 3. Click code block, See editor cursor jump to top. Will try to fit into the next release or at least one soon after.
Author
Owner

@ssddanbrown commented on GitHub (Jan 12, 2019):

Fix now found and in code, Ready for next release. Thanks for reporting!

@ssddanbrown commented on GitHub (Jan 12, 2019): Fix now found and in code, Ready for next release. Thanks for reporting!
Author
Owner

@slimninja commented on GitHub (Jan 12, 2019):

Much appreciated! My wiki thanks you :)

On Sat., Jan. 12, 2019, 2:24 p.m. Dan Brown <notifications@github.com wrote:

Closed #1162 https://github.com/BookStackApp/BookStack/issues/1162.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/1162#event-2070230859,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALeqDSOJLovNQO8C57Z9CegNdYuC_ACVks5vCjZVgaJpZM4ZJPtk
.

@slimninja commented on GitHub (Jan 12, 2019): Much appreciated! My wiki thanks you :) On Sat., Jan. 12, 2019, 2:24 p.m. Dan Brown <notifications@github.com wrote: > Closed #1162 <https://github.com/BookStackApp/BookStack/issues/1162>. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/BookStackApp/BookStack/issues/1162#event-2070230859>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ALeqDSOJLovNQO8C57Z9CegNdYuC_ACVks5vCjZVgaJpZM4ZJPtk> > . >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#937