Describe the Bug
Problematic behavior of code blocks that are just created (tested in private windows to make sure any local cache does not make troubles):
on Firefox:
- new code block once closed is not editable until saving page and reopening editor
- cannot delete new code block until reopening editor
- when trying to add new unformatted line after new code block (by enter) it adds empty line only visually (its gone after saving the page) inside the code block instead (this is sometimes not gone after saving page, probably depends if the code block was the last element of page)
on Brave:
- new code block once closed is not editable until saving page and reopening editor
- cannot move caret next to new code block so it is impossible to add new line after it if this code block is the last element on the page (this is also fixed by saving page)
Steps to Reproduce
- open editor for any page
- Crtl+7 to create new block
- save this block
- behavior of the newly created block is as in the description of the bug
Expected Behaviour
Behavior from description does not occur.
Screenshots or Additional Context
empty, only visually added lines when trying to add new unformatted lines after code block in Firefox:

Exact BookStack Version
v22.02
PHP Version
8.0.8
Hosting Environment
Tested on official demo and my setup which basically is in Docker containers:
- apache reverse-proxy
- php 8.0.8
Describe the Bug
Problematic behavior of code blocks that are just created (tested in private windows to make sure any local cache does not make troubles):
on Firefox:
on Brave:
Steps to Reproduce
Expected Behaviour
Behavior from description does not occur.
Screenshots or Additional Context
empty, only visually added lines when trying to add new unformatted lines after code block in Firefox:

Exact BookStack Version
v22.02
PHP Version
8.0.8
Hosting Environment
Tested on official demo and my setup which basically is in Docker containers: