mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 16:49:47 +03:00
New descriptions of books and chapters don't update with formatting if you have set a description before the update #4427
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:

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

I've tried it also with different browsers, it looks all the same.
Steps to Reproduce
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
@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.phpviews 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)
@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.