Adding a code block in collapsible block causes page to not be editable #5112

Closed
opened 2026-02-05 09:41:15 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Rock-HOG on GitHub (Jan 10, 2025).

Describe the Bug

I added a collapsible block with a code block inside. When I save the page and go back to edit, I see nothing in the editor. I'm using the new WYSIWYG. I have tested this multiple times in other books, and the same thing happened.

Steps to Reproduce

  1. Create a new page
  2. Add Title
  3. Add Collapsible Block
  4. Expand Collapsible Block
  5. Add Code Block
  6. Save Code Block
  7. Save Page
  8. Edit Page

Expected Behaviour

You should be able to add a code block to a collapsible block and then edit the page in the future.

Screenshots or Additional Context

Screenshot 2025-01-09 170811
Screenshot 2025-01-09 170828
Screenshot 2025-01-09 172019

Browser Details

Microsoft Edge on Windows 11, Google Chrome on Windows 11, Firefox on Windows 11

Exact BookStack Version

24.12.1

Originally created by @Rock-HOG on GitHub (Jan 10, 2025). ### Describe the Bug I added a collapsible block with a code block inside. When I save the page and go back to edit, I see nothing in the editor. I'm using the new WYSIWYG. I have tested this multiple times in other books, and the same thing happened. ### Steps to Reproduce 1. Create a new page 2. Add Title 3. Add Collapsible Block 4. Expand Collapsible Block 5. Add Code Block 6. Save Code Block 7. Save Page 8. Edit Page ### Expected Behaviour You should be able to add a code block to a collapsible block and then edit the page in the future. ### Screenshots or Additional Context ![Screenshot 2025-01-09 170811](https://github.com/user-attachments/assets/3438f2cc-6da6-4d10-9d71-0f7389a10217) ![Screenshot 2025-01-09 170828](https://github.com/user-attachments/assets/6f03ab4f-4ae0-4a0f-94fe-c65773838f3d) ![Screenshot 2025-01-09 172019](https://github.com/user-attachments/assets/96f2d262-ccc0-4043-bcfa-ef6b406be2eb) ### Browser Details Microsoft Edge on Windows 11, Google Chrome on Windows 11, Firefox on Windows 11 ### Exact BookStack Version 24.12.1
OVERLORD added the 🐛 Bug label 2026-02-05 09:41:15 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 15, 2025):

Thanks @Rock-HOG, I've added this to the megathread: #5245

@ssddanbrown commented on GitHub (Jan 15, 2025): Thanks @Rock-HOG, I've added this to the megathread: #5245
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5112