2 categories = ["Releases"]
4 title = "BookStack Release v24.02"
5 date = 2024-02-28T13:36:00Z
7 image = "/images/blog-cover-images/cc-by-sa-2/burnieside-steven-brown.jpg"
8 slug = "bookstack-release-v24-02"
12 For our first feature release of 2024 we have a variety enhancements to enjoy!
13 Many of these build upon the work from the previous release, while many others address some
14 common pain-points in BookStack.
16 * [Update instructions](/docs/admin/updates)
17 * [GitHub release page](https://github.com/BookStackApp/BookStack/releases/tag/v24.02)
21 - **Security** - The v23.12 branch of BookStack recently had a security release, which you can find details of in our [v23.12.3 blogpost](/blog/bookstack-release-v23-12-3/).
22 - **Comments** - The ability to use markdown content in comments has been removed in this release, replaced by a WYSIWYG editor. Markdown in comments was a fairly hidden feature though so was not commonly utilised. Existing markdown comments will remain although formatting may be lost if old markdown comments are edited.
23 - **Commands** - The "Regenerate Comment Content" command has been removed in this release since this action is now redundant.
24 - **OIDC Authentication** - Proof Key for Code Exchange (PKCE) support has been added to BookStack OIDC authentication. This should not affect existing OIDC use but you may want to enforce PKCE to be required for BookStack on your authentication system, if supported, for extra security.
26 {{<pt 8w3F4aWqH3MProMwyQBf2d>}}
28 ### Simple WYSIWYG comment editor
30 Last feature release [we added](https://www.bookstackapp.com/blog/bookstack-release-v23-12/#wysiwyg-editor-for-descriptions)
31 a simple WYSIWYG editor for shelf, book & chapter descriptions.
32 In this release we bring this new editor to comments:
34 
36 Formatting in comments was previously possible via markdown but this was little known and not really
37 intuitive for the mixed-skill environment we target, so this should make things much more accessible.
38 This does mean some previously supported markdown formats can now longer be used, but those old comments
39 will still retain their formatting, unless edited in which case they might lose unsupported formatting
40 when loaded into the editor.
42 ### Default Page Templates for Chapters
44 Building on the default page template option we added to books [in the last release](/blog/bookstack-release-v23-12/#default-template-for-new-book-pages),
45 the same functionality has now been carried across for chapters,
46 so it's now possible to set a default page template at the chapter level which
47 will be used as the default content for new pages, when a page is created
48 within that specific chapter:
50 
52 New pages will use the chapter-level template if set, or otherwise look to
53 use the book-level template if set there.
55 A shout-out to [@Man-in-Black](https://github.com/BookStackApp/BookStack/pull/4750) for developing
56 out the implementation for this feature.
58 ### WYSIWYG Table Improvements
60 Tables are a fairly complex type of content supported by our WYSIWYG editor, especially
61 with all the options and variations that can apply to them. It's easy for sizing & formatting
62 to go wrong, or become somewhat "stuck", while it's difficult to reset these kinds of options.
63 In this release, we've focused on a whole range of improvements to make it easier to handle
64 these kinds of scenarios.
66 
68 Within the table toolbar menu, there are now a couple of extra options: A "Clear table formatting" option
69 makes it easy to reset all sizing and formatting across the whole table in a single click.
70 A "Resize to contents" option resets all fixed sizes across the tables, allowing it to automatically scale
73 Multi-table-cell selection has been enhanced, so that clear-formatting & text-direction controls
74 will now properly apply across the whole selection range. We've also addressed an issue with
75 scrollbars clogging up the view when such selections are performed in certain browsers.
77 Lastly, enabling a header row has been made easier. Previously, this required navigating multiple
78 levels of menus but instead you'll now see a "Toggle header row" button in the table toolbar
79 when focused within the first table row:
81 
83 ### Improved Video Attachment Support
85 While we don't have video-specific media management in BookStack, some users would upload videos
86 via attachments then embed them into the page, which had the advantage that access to videos would
87 be controlled by access to the page they're uploaded to.
88 While this could work, video ideally needs to be served in a way that can be streamed, otherwise
89 the browser would attempt to download the whole video in one go, and things like timeline scrubbing
92 In this release we've added "Range request" support that allows browsers to fetch video in a
93 stream-supporting manner, while still being behind BookStack's permission control management.
94 Going further, to help the process of embedding, adding an attachment link
95 (or drag and dropping the attachment into the editor) for a video will directly insert that as a
96 video embed rather than a standard link:
98 <video muted controls src="/images/2024/02/bookstack-video-attachment-drag-drop.mp4"></video>
100 *Note: Stream support can depend on configured storage. When S3 storage is used, attachments will be streamed from BookStack to the user, but BookStack may still need to download the whole attachment file from the upstream storage system on request.*
102 ### OIDC Authentication PKCE Support
104 Proof Key for Code Exchange (PKCE) is a mechanism that can be added to the OAuth/OIDC authentication flow
105 to help protect against a range of potential attacks via an extra layer of checks upon the credentials
106 gained & used by a client application like BookStack.
108 In v24.02 we now support PKCE for the the OIDC authentication flow. This is active by default, and will be used
109 on all OIDC login flows without any additional BookStack configuration needed.
110 OIDC authentication systems that support PKCE will be able to detect and use this for extra security.
111 Some authentication systems also provide the option to make PKCE mandatory, which if provided you may
112 want to enable to harden security further in this area.
114 ### Auth Pre-Register Logical Theme Event
116 A new `AUTH_PRE_REGISTER` event is now available for use via the
117 [logical theme system](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/logical-theme-system.md).
118 This event runs just before a user is created through any self-registration events
119 (including auto-registration events for third-party/saml/ldap/oidc authentication)
120 and its return value can be used to indicate if the registration should be allowed.
121 A `false` return value will stop the registration, and return the user to the login screen.
122 Here's an example use of this logical theme event:
127 use BookStack\Theming\ThemeEvents;
128 use BookStack\Facades\Theme;
130 Theme::listen(ThemeEvents::AUTH_PRE_REGISTER, function (string $authSystem, array $userData) {
131 return str_starts_with($userData['email'], 'barry');
135 This arbitrary example will only allow registration if the user's email address begins with 'barry'.
136 There's a lot of better ways this could be used though, to add custom logic that BookStack does not support
137 by default. For example, you could cross-reference the user against a file, you could check against an external API,
138 or even force disable this kind of registration completely by simply returning `false`.
142 There have been some significant changes this release cycle in regards to how the majority
143 of data is queried out from the database. This was mostly a code & data organisation
144 change but some performance optimization was performed alongside these changes.
146 There have also been changes made to how redirects & session history tracking are performed
147 which should help avoid some edge cases where users could be redirected to
148 unexpected places, like to uploaded images.
152 A big thanks again to all our terrific tireless translators who provide their time to help
153 translate text for the BookStack interface. Here's those that have contributed since
154 the initial v23.12 release:
156 - algernon19 - *Hungarian - 3386 words*
157 - renge - *Korean - 2030 words*
158 - Ivan Krstic (ikrstic) - *Serbian (Cyrillic) - 1831 words*
159 - TheGatesDev (thegatesdev) - *Dutch - 889 words*
160 - Martins Pilsetnieks (pilsetnieks) - *Latvian - 849 words*
161 - toras9000 - *Japanese - 680 words*
162 - Irdi (irdiOL) - *Albanian - 542 words*
163 - KateBarber - *Welsh - 355 words*
164 - 10935336 - *Chinese Simplified - 341 words*
165 - Show - *Russian - 283 words*
166 - xBahamut - *Portuguese, Brazilian - 263 words*
167 - Vanja Cvelbar (b100w11) - *Slovenian - 214 words*
168 - Pavle Knežević (pavleknezzevic) - *Serbian (Cyrillic) - 213 words*
169 - m0uch0 - *Spanish - 182 words*
170 - Sascha (Man-in-Black) - *German; German Informal - 179 words*
171 - Guttorm Hveem (guttormhveem) - *Norwegian Nynorsk - 179 words*
172 - scureza - *Italian - 178 words*
173 - Hsin-Hsiang Peng (Hsins) - *Chinese Traditional - 141 words*
174 - bendem - *French - 103 words*
175 - sdhadi - *Persian - 98 words*
176 - Jøran Haugli (haugli92) - *Norwegian Bokmal - 84 words*
177 - Twister (theuncles75) - *Hebrew - 80 words*
178 - Honza Nagy (honza.nagy) - *Czech - 79 words*
179 - Jan Picka (polipones) - *Czech - 69 words*
180 - asd20752 - *Norwegian Bokmal - 68 words*
181 - Kasper Alsøe (zeonos) - *Danish - 62 words*
182 - sultani - *Persian - 61 words*
183 - diogoalex991 - *Portuguese - 47 words*
184 - Eduard Ereza Martínez (Ereza) - *Catalan - 25 words*
185 - Martin Sebek (sebekmartin) - *Czech - 20 words*
186 - Ehsan Sadeghi (ehsansadeghi) - *Persian - 11 words*
187 - ka_picit - *Danish - 6 words*
189 *\* Word counts are those tracked by Crowdin, indicating original EN words translated.*
193 Our next release will be focused on updating the framework used by BookStack, from Laravel 9
194 to Laravel 10. This will require an update of requirements, specifically to the minimum
195 PHP version, which will jump from PHP 8.0 to PHP 8.1. Therefore we'll also be dedicating
196 effort to updating our install scripts & guidance, to support this change.
198 Upon that, I'd like to address the options provided for PDF rendering.
199 Right now we provide DOMPDF by default, which works great via just PHP and is license-compatible
200 for BookStack, while we also document a way to use WKHTMLtoPDF which offers more advanced
201 rendering but has security & technical considerations. WKHTMLtoPDF is no longer
202 maintained nor developed, and is dropping out of operating system software repositories,
203 so it's time to look at filling that gap.
204 My current idea is to support a generic, command-calling-based interface which can then be
205 configured for a variety of PDF rendering solutions, with some guidance in the BookStack
206 docs to make this easy to configure.
208 ### Full List of Changes
210 **Released in v24.02**
212 * Added simple WYSIWYG comment editor inputs. ([#4815](https://github.com/BookStackApp/BookStack/pull/4815), [#3018](https://github.com/BookStackApp/BookStack/issues/3018))
213 * Added default page templates for chapters. Thanks to [@Man-in-Black](https://github.com/BookStackApp/BookStack/pull/4750). ([#4750](https://github.com/BookStackApp/BookStack/pull/4750), [#4764](https://github.com/BookStackApp/BookStack/issues/4764))
214 * Added PKCE support for OIDC. ([#4804](https://github.com/BookStackApp/BookStack/pull/4804), [#4734](https://github.com/BookStackApp/BookStack/issues/4734))
215 * Added "Clear table formatting" & "Resize to contents" WYSIWYG table options. ([#4845](https://github.com/BookStackApp/BookStack/issues/4845))
216 * Added "Toggle header row" button to table toolbar in WYSWIYG editor. ([#985](https://github.com/BookStackApp/BookStack/issues/985))
217 * Added attachment serving range request support. ([#4758](https://github.com/BookStackApp/BookStack/pull/4758), [#3274](https://github.com/BookStackApp/BookStack/issues/3274))
218 * Added new `AUTH_PRE_REGISTER` logical theme event. ([#4833](https://github.com/BookStackApp/BookStack/issues/4833))
219 * Updated app entity loading to be more efficient and avoid global addSelects. ([#4827](https://github.com/BookStackApp/BookStack/pull/4827), [#4823](https://github.com/BookStackApp/BookStack/issues/4823))
220 * Updated book/shelf cover image wording to make sizing in usage clearer. ([#4748](https://github.com/BookStackApp/BookStack/issues/4748))
221 * Updated PWA manifest to allow landscape use. Thanks to [@shashinma](https://github.com/BookStackApp/BookStack/pull/4828). ([#4828](https://github.com/BookStackApp/BookStack/pull/4828))
222 * Updated redirect handling to reduce chance of redirecting to images. ([#4863](https://github.com/BookStackApp/BookStack/issues/4863))
223 * Updated some EN text for consistency/readability. ([#4794](https://github.com/BookStackApp/BookStack/pull/4794))
224 * Updated WYSIWYG editor with improved cell selection formatting clearing. ([#4850](https://github.com/BookStackApp/BookStack/pull/4850))
225 * Updated WYSIWYG text direction & alignment controls to work more reliably on complex structures. ([#4843](https://github.com/BookStackApp/BookStack/issues/4843))
226 * Fixed breadcrumb dropdowns being partially out of view on mobile screen sizes. ([#4824](https://github.com/BookStackApp/BookStack/issues/4824))
227 * Fixed description WYSIWYG not respecting RTL text. ([#4810](https://github.com/BookStackApp/BookStack/issues/4810))
228 * Fixed header bar collapse on smaller screen sizes when no name or logo is used. ([#4841](https://github.com/BookStackApp/BookStack/issues/4841))
229 * Fixed incorrect pagination display in RTL layout. ([#4808](https://github.com/BookStackApp/BookStack/issues/4808))
230 * Fixed JavaScript error logged on WYSIWYG editor load due to how custom styles were imported. ([#4814](https://github.com/BookStackApp/BookStack/issues/4814))
231 * Fixed scrollbars showing on WYSIWYG table cell range selection in some browsers. ([#4844](https://github.com/BookStackApp/BookStack/issues/4844))
232 * Fixed WYSIWYG code block text direction controls not being respected. ([#4809](https://github.com/BookStackApp/BookStack/issues/4809))
234 **Released in v23.12.3**
236 * Updated PHP dependencies, primarily to update php-svg-lib package.
238 **Released in v23.12.2**
240 * Fixed attachment list ctrl-click not opening attachments inline. ([#4782](https://github.com/BookStackApp/BookStack/issues/4782))
241 * Updated translations with latest Crowdin changes. ([#4779](https://github.com/BookStackApp/BookStack/pull/4779))
242 * Fixed entity selector popup pre-fill not searching term as expected. ([#4778](https://github.com/BookStackApp/BookStack/issues/4778))
244 **Released in v23.12.1**
246 * Fixed chapter API missing expected "book_slug" field. ([#4765](https://github.com/BookStackApp/BookStack/issues/4765))
247 * Updated translations with latest Crowdin changes. ([#4747](https://github.com/BookStackApp/BookStack/pull/4747))
251 <span style="font-size: 0.8em;opacity:0.9;">Header Image Credits: <span>Photo by <a href="https://www.geograph.org.uk/photo/7714511">Steven Brown (CC-BY-SA-2)</a> - Image Modified</span></span>