New descriptions of books and chapters don't update with formatting if you have set a description before the update #4427

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

Originally created by @Man-in-Black on GitHub (Jan 23, 2024).

Describe the Bug

I've set some description to my books since I've started using Bookstack.
Now with 23.12 the simple wysiwyg editor startet for the descriptions and I began on new books with it and all works fine.
But on the existing descriptions I cannot get it to work.

I got my book with the old description like this:
image

But in the editor it shows up like this (what I wanted to have):
image

I've tried it also with different browsers, it looks all the same.

Steps to Reproduce

  1. edit an old desciption with some formatting

Expected Behaviour

the formatted text should appear on the old desciptions.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

23.12

Originally created by @Man-in-Black on GitHub (Jan 23, 2024). ### Describe the Bug I've set some description to my books since I've started using Bookstack. Now with 23.12 the simple wysiwyg editor startet for the descriptions and I began on new books with it and all works fine. But on the existing descriptions I cannot get it to work. I got my book with the old description like this: <img width="727" alt="image" src="https://github.com/BookStackApp/BookStack/assets/9048534/87aee64e-c57b-415d-8d0d-bae6049fb5ef"> But in the editor it shows up like this (what I wanted to have): ![image](https://github.com/BookStackApp/BookStack/assets/9048534/4ddf4363-6e1f-477e-a982-50149a3c0094) I've tried it also with different browsers, it looks all the same. ### Steps to Reproduce 1. edit an old desciption with some formatting ### Expected Behaviour the formatted text should appear on the old desciptions. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version 23.12
OVERLORD added the 🐛 Bug label 2026-02-05 08:52:07 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 24, 2024):

Hi @Man-in-Black,
Do you have any visual theme system overrides that cover the areas where descriptions are shown (I think these are the show.blade.php views for books,chapters and pages in particular)
If not, are you able to reproduce this on our demo site? (I don't think I've updated any descriptions there since the recent changes to descriptions)

@ssddanbrown commented on GitHub (Jan 24, 2024): Hi @Man-in-Black, Do you have any visual theme system overrides that cover the areas where descriptions are shown (I think these are the `show.blade.php` views for books,chapters and pages in particular) If not, are you able to reproduce this [on our demo site](https://demo.bookstackapp.com/books/bookstack-demo-site/page/logging-in-to-the-demo-site)? (I don't think I've updated any descriptions there since the recent changes to descriptions)
Author
Owner

@Man-in-Black commented on GitHub (Jan 24, 2024):

Thanks @ssddanbrown for pointing me to the right direction. I indeed did some changes to the show.blade.php.
I've changed line 29 to <div class="text-muted break-text">{!! $book->descriptionHtml() !!}</div> and now its working fine.

In the future I will check my modified files in the theme system in such cases.

Thanks again for your fast response.

@Man-in-Black commented on GitHub (Jan 24, 2024): Thanks @ssddanbrown for pointing me to the right direction. I indeed did some changes to the `show.blade.php`. I've changed line 29 to `<div class="text-muted break-text">{!! $book->descriptionHtml() !!}</div>` and now its working fine. In the future I will check my modified files in the theme system in such cases. Thanks again for your fast response.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4427