empty code blocks that are hard to delete #3624

Closed
opened 2026-02-05 07:08:11 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @rgkirch on GitHub (Mar 17, 2023).

Describe the Bug

Editing with code formatting is borked. It's difficult or impossible to delete the empty code blocks and they're created in normal edtiing.

Steps to Reproduce

<ctrl+shift+e>code<enter><backspace>

Expected Behaviour

don't create the extra empty code block

Screenshots or Additional Context

image

Browser Details

chrome 111.0.5563.65 windows 10

Exact BookStack Version

BookStack v23.02.1

PHP Version

8.2 from php:8.2-apache-buster from solidnerd/bookstack:23.2.1

Hosting Environment

solidnerd/bookstack:23.2.1 docker

Originally created by @rgkirch on GitHub (Mar 17, 2023). ### Describe the Bug Editing with code formatting is borked. It's difficult or impossible to delete the empty code blocks and they're created in normal edtiing. ### Steps to Reproduce `<ctrl+shift+e>code<enter><backspace>` ### Expected Behaviour don't create the extra empty code block ### Screenshots or Additional Context ![image](https://user-images.githubusercontent.com/6143833/225989033-b642a1f1-0042-483c-9124-18ba11ecbfa4.png) ### Browser Details chrome 111.0.5563.65 windows 10 ### Exact BookStack Version BookStack v23.02.1 ### PHP Version 8.2 from php:8.2-apache-buster from solidnerd/bookstack:23.2.1 ### Hosting Environment solidnerd/bookstack:23.2.1 docker
OVERLORD added the 🐛 Bug label 2026-02-05 07:08:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3624