Code blocks no longer work properly #2683

Closed
opened 2026-02-05 04:47:23 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @christianhz01 on GitHub (Feb 28, 2022).

Describe the Bug

Unfortunately, since the new version, code blocks no longer work properly. It is no longer possible to edit a code block once it is created. You can't insert a new line directly above or below the block, which makes editing the page impossible.

Steps to Reproduce

  1. create new page
  2. insert code block (three dots in the editor bar -> code block or via shotcut)
  3. insert arbitrary code or text
  4. save code block
  5. now the codeblock can't be edited anymore and is stuck on the page.

Expected Behaviour

Screenshots or Additional Context

No response

Browser Details

Microsoft Edge

Exact BookStack Version

v22.02.1

PHP Version

7.4

Hosting Environment

Ubuntu20, Apache2, PHP7.4, MYSQL

Originally created by @christianhz01 on GitHub (Feb 28, 2022). ### Describe the Bug Unfortunately, since the new version, code blocks no longer work properly. It is no longer possible to edit a code block once it is created. You can't insert a new line directly above or below the block, which makes editing the page impossible. ### Steps to Reproduce 1. create new page 2. insert code block (three dots in the editor bar -> code block or via shotcut) 3. insert arbitrary code or text 4. save code block 5. now the codeblock can't be edited anymore and is stuck on the page. ### Expected Behaviour - ### Screenshots or Additional Context _No response_ ### Browser Details Microsoft Edge ### Exact BookStack Version v22.02.1 ### PHP Version 7.4 ### Hosting Environment Ubuntu20, Apache2, PHP7.4, MYSQL
OVERLORD added the 🐛 Bug label 2026-02-05 04:47:23 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 28, 2022):

Hi @christianhz01,

Are you able to replicate this same issue when using our demo site?:
https://demo.bookstackapp.com/books/bookstack-demo-site/page/logging-in-to-the-demo-site

In addition, can you confirm edge version and what operating system you're using?

@ssddanbrown commented on GitHub (Feb 28, 2022): Hi @christianhz01, Are you able to replicate this same issue when using our demo site?: https://demo.bookstackapp.com/books/bookstack-demo-site/page/logging-in-to-the-demo-site In addition, can you confirm edge version and what operating system you're using?
Author
Owner

@christianhz01 commented on GitHub (Feb 28, 2022):

Hi @ssddanbrown

the problem had already been solved. When I looked for my Edge version, I saw that there is an update. Sorry, I should have checked better before I write something here. 😐 Have a nice week!

@christianhz01 commented on GitHub (Feb 28, 2022): Hi @ssddanbrown the problem had already been solved. When I looked for my Edge version, I saw that there is an update. Sorry, I should have checked better before I write something here. 😐 Have a nice week!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2683