2 categories = ["Releases"]
4 title = "BookStack Release v23.12"
5 date = 2023-12-28T11:43:00Z
7 image = "/images/blog-cover-images/cc-by-sa-4/mountains-milan-bališin.jpg"
8 slug = "bookstack-release-v23-12"
12 As a little Christmas-time treat we have BookStack v23.12 slipping in as the last
13 release of the year. This release focuses on providing a simple WYSIWYG editor
14 for description inputs and default page templates within books, among some other additional gifts.
16 * [Update instructions](/docs/admin/updates)
17 * [GitHub release page](https://github.com/BookStackApp/BookStack/releases/tag/v23.12)
21 TODO - Copy to updates page
23 - **Page Includes** - The way page include content is fetched & merged has changed significantly in this release,
24 which may in some cases alter how included content appears on the page.
25 - **Prior Security Release** - Prior version v23.10.3 was a security release. If you missed this before, further details about that [can be found here](/blog/bookstack-release-v23-10-3/).
28 <!-- {{<pt 4YtVndveEVE6GuuGPV3Yn1>}} -->
30 ### WYSIWYG Editor for Descriptions
32 In BookStack we have description fields for chapters, books and shelves which allow a little bit of explanation and context to be provided for those items.
33 These have always been simple plaintext fields, but as of v23.12 you'll now see a simple WYSIWYG input box instead with a few formatting controls:
35 TODO - Image of description field
37 Formatting options include, and are limited to: bold, italic, links, bullet lists and numbered lists.
38 The formatting is purposefully limited here to keep main content within pages, but allow a little formatting along with linking to relevant pages where required.
39 Since links can now be placed within descriptions, references to other items will now be tracked via the existing reference system:
41 TODO - Image of page references, references by a shelf, chapter and book.
43 For API users, new `description_html` fields now exist on responses and requests to interact with this field in a HTML-aware manner, otherwise the pre-existing `description` fields will continue to work as before.
45 ### Default Template For New Book Pages
47 We've long since supported page [templates](/docs/user/page-templates/) within BookStack but to be used the user would have to access the relevant sidebar menu within the page editor, leading to them being easy to miss. Additionally, it would be a common desire to use a template for all pages created within a certain context.
48 In this release, a new option for books allows you to set a default page template:
50 TODO - Image of option
52 When set, this template page will be used as the default content for all new pages within that book, preventing the need to select the template within the editor each time you create something new. Note though, this is still permission controlled so the template will only be used if the page creator has view access to the template assigned.
54 A big thanks to [@lennertdaniels](https://github.com/BookStackApp/BookStack/pull/3918) for performing the initial implementation work to move this forward within BookStack!
56 ### OIDC RP-Initiated Logout
58 OpenID-Connect authentication in BookStack allows for easy login via an external system, but so far it's lacked any kind of logout support.
59 That changes in this release thanks for efforts by [@joancyho](https://github.com/BookStackApp/BookStack/pull/4467) to introduce OIDC RP-Initiated logout support.
60 This official [complementary part of the OIDC spec](https://openid.net/specs/openid-connect-rpinitiated-1_0.html) allows an application like BookStack to request logout of the external authentication system as part of the application's logout flow.
62 BookStack's support of this includes the use of autodiscovery to learn the logout endpoint.
63 If you want to use RP-initiated logout you'll need to configure a `OIDC_END_SESSION_ENDPOINT` option for BookStack:
66 # Set to true to enable logout via a URL found via auto-discovery:
67 OIDC_END_SESSION_ENDPOINT=true
69 # Or configure a specific URL to be used for RP-initiated logout:
70 OIDC_END_SESSION_ENDPOINT="https://instance.authsystem.example.com/logout"
72 # Or disable RP-initiated logout (default):
73 OIDC_END_SESSION_ENDPOINT=false
76 It's likely you'll need to also configure logout/sign-out URIs on your OIDC authentication system for your BookStack application instance.
77 Our [OIDC documentation](/docs/admin/oidc-auth/#authentication-system-configuration) has been updated with details of these URIs.
79 ### Page Context in Email Notifications
81 A couple of releases ago we added email notifications for certain page activities, and these notifications would include
82 a name and link for the page interacted upon. Sometimes though, it may not be clear where the activity has occurred from the
83 page name alone since it could be a page name used multiple times, or lacking context without knowing where that page is located.
84 To help add that context, notifications will now reflect the page parent book, and chapter if within:
86 TODO - Image of notification with page parent context including chapter
88 A big thanks to [@Man-in-Black](https://github.com/BookStackApp/BookStack/pull/4629) for contributing this functionality.
90 ### Friendlier Buttons
92 For a long time BookStack has used buttons with forced upper-case text, the design of which was getting a bit long in the tooth
93 while potentially coming across somewhat angry via their shouty appearance.
94 For this release, the design of buttons has been tweaked a little to better fit them into the current design, rounding the corners
95 a little more, tweaking the shadows upon hover and, most importantly, using the casing from the source translation text:
97 TODO - Image of buttons
99 In most cases buttons will now appear as Title Case, although this can now change to suit different languages as needed as it's not forced
102 ### Logical Theme System Events to Register Routes
104 This release I've added a couple of new events to the [logical theme system](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/logical-theme-system.md)
105 to allow easier registration of custom web routes/endpoints where desired. As an example of these:
110 use BookStack\Theming\ThemeEvents;
111 use BookStack\Facades\Theme;
112 use Illuminate\Routing\Router;
114 // Register a custom "/counter" endpoint which increments each time accessed
115 Theme::listen(ThemeEvents::ROUTES_REGISTER_WEB, function (Router $router) {
117 $router->get('/counter', function () {
118 $count = session()->get('counter', 0) + 1;
119 session()->put('counter', $count);
120 return "Count: {$count}";
124 // Register a custom "/counter-auth" endpoint which increments each time accessed
125 // like above but only if the user is logged in (or public access is enabled).
126 Theme::listen(ThemeEvents::ROUTES_REGISTER_WEB_AUTH, function (Router $router) {
128 $router->get('/counter-auth', function () {
129 $count = session()->get('secret-counter', 0) + 1;
130 session()->put('secret-counter', $count);
131 return "Count Authed: {$count}";
136 It was possible to register such routes previously, but you had to register them in a very specific way
137 using internally named middleware, in the right order, otherwise you'd have issues with session & user access.
138 These new events are intended to make this much simpler.
140 ### Rebuilt Page Include Engine
142 When [reusing page content](/docs/user/reusing-page-content/) BookStack has always processed include tags via quite
143 a simple find/replace approach, which worked well for the most part but could lead to technically invalid syntax in some
144 cases due to nested paragraphs and other oddities, which may cause unpredictable issues in how pages would display
147 In this release, the engine for page include tags has been rebuilt to specifically be more content aware
148 avoiding invalid structure where possible by smartly splitting existing blocks or moving included content to
149 appropriate locations if needed.
153 One again a big thanks to all the exceptionally eloquent experts in language who've contributed
154 translations since our last feature release:
158 - User - *Language - x words*
160 *\* Word counts are those tracked by Crowdin, indicating original EN words translated.*
164 Now we have a simpler WYSIWYG editor, as implemented for descriptions in this release, I'll probably be looking to carry this across to the comments system to provide that with simple WYSIWYG editing, although this will require some breaking changes to the currently supported markdown content of this input. Upon that, over the initial few weeks of this year I'd like to explore some of the new PHP-ecosystem technologies like roadrunner and/or FrankenPHP to understand their potential benefit to BookStack.
166 Over the next few days I'll be putting together a "BookStack in 2023" blogpost, like [done previous years](https://www.bookstackapp.com/blog/bookstack-in-2022/) to look back and assess the progress of the project over the last year.
168 ### Full List of Changes
170 **Released in v23.12**
172 * Added simple WYSIWYG for description fields. ([#4729](https://github.com/BookStackApp/BookStack/pull/4729), [#2354](https://github.com/BookStackApp/BookStack/issues/2354), [#2203](https://github.com/BookStackApp/BookStack/issues/2203))
173 * Added default template option for books. Thanks to [@lennertdaniels](https://github.com/BookStackApp/BookStack/pull/3918). ([#4721](https://github.com/BookStackApp/BookStack/pull/4721), [#3918](https://github.com/BookStackApp/BookStack/pull/3918), [#1803](https://github.com/BookStackApp/BookStack/issues/1803))
174 * Added OIDC RP-initiated logout. Thanks to [@joancyho](https://github.com/BookStackApp/BookStack/pull/4467). ([#4714](https://github.com/BookStackApp/BookStack/pull/4714), [#4467](https://github.com/BookStackApp/BookStack/pull/4467), [#3715](https://github.com/BookStackApp/BookStack/issues/3715))
175 * Added new Logical Theme System event to register web routes. ([#4663](https://github.com/BookStackApp/BookStack/issues/4663))
176 * Updated email notifications to include the page parent chapter/book. Thanks to [@Man-in-Black](https://github.com/BookStackApp/BookStack/pull/4629). ([#4629](https://github.com/BookStackApp/BookStack/pull/4629))
177 * Updated and standardised DOM handling in the codebase. ([#4673](https://github.com/BookStackApp/BookStack/pull/4673))
178 * Updated back redirection handling to not rely on referrer headers. ([#4656](https://github.com/BookStackApp/BookStack/issues/4656))
179 * Updated book/chapter/shelf description character limit. ([#4085](https://github.com/BookStackApp/BookStack/issues/4085))
180 * Updated design of buttons to be a bit friendlier. ([#4728](https://github.com/BookStackApp/BookStack/pull/4728))
181 * Updated HTML exporting with better RTL handling. ([#4645](https://github.com/BookStackApp/BookStack/issues/4645))
182 * Updated include tag handling to be structure/DOM aware. ([#4688](https://github.com/BookStackApp/BookStack/pull/4688))
183 * Updated SAML2 dump debug option to include group parsing details. ([#4706](https://github.com/BookStackApp/BookStack/issues/4706))
184 * Updated translations with latest Crowdin changes. ([#4658](https://github.com/BookStackApp/BookStack/pull/4658))
185 * Updated WYSIWYG editor to allow video/embed alignment controls. ([#4727](https://github.com/BookStackApp/BookStack/pull/4727), [#3378](https://github.com/BookStackApp/BookStack/issues/3378))
186 * Updated WYSIWYG library TinyMCE from 6.5.1 to 6.7.2. ([#4661](https://github.com/BookStackApp/BookStack/pull/4661))
187 * Fixed extra paragraphs & invalid syntax when using page includes. ([#3385](https://github.com/BookStackApp/BookStack/issues/3385))
188 * Fixed lack of user invite via the API in certain cases. ([#4720](https://github.com/BookStackApp/BookStack/issues/4720))
189 * Fixed page includes leading to duplicate IDs. ([#3982](https://github.com/BookStackApp/BookStack/issues/3982))
190 * Fixed permission generation failure with large amounts of content. ([#4695](https://github.com/BookStackApp/BookStack/issues/4695))
191 * Fixed PHP mbstring deprecation warnings. ([#4638](https://github.com/BookStackApp/BookStack/issues/4638))
192 * Fixed SAML2 Single Logout (SLO) not invalidating session at point defined by the spec. ([#4713](https://github.com/BookStackApp/BookStack/issues/4713))
194 **Released in v23.10.4**
196 This was simply a follow-up of v23.10.3 to fix the app version number.
198 **Released in v23.10.3**
200 * Updated thumbnail handling to fix use of content as image data. ([#4681](https://github.com/BookStackApp/BookStack/pull/4681))
202 **Released in v23.10.2**
204 * Fixed incorrect audit log dropdown behaviour. ([#4652](https://github.com/BookStackApp/BookStack/issues/4652))
205 * Fixed redirects to the manfiest endpoint in some environments. ([#4649](https://github.com/BookStackApp/BookStack/issues/4649))
206 * Updated translations with latest Crowdin changes. ([#4643](https://github.com/BookStackApp/BookStack/pull/4643))
208 **Released in v23.10.1**
210 * Added "Norwegian Nynorsk" to user language options.
211 * Added JavaScript public event for customizing codemirror instances. ([#4639](https://github.com/BookStackApp/BookStack/issues/4639))
212 * Added handling to allow jumping to headers/sections within collapsible sections. ([#4637](https://github.com/BookStackApp/BookStack/issues/4637))
213 * Added PHP 8.3 support. ([#4633](https://github.com/BookStackApp/BookStack/issues/4633))
214 * Updated translations with latest Crowdin changes. ([#4631](https://github.com/BookStackApp/BookStack/pull/4631))
215 * Fixed header bar peeking through on markdown editor fullscreen mode. ([#4641](https://github.com/BookStackApp/BookStack/issues/4641))
216 * Fixed incorrect color usage for editor toolbox active tabs. ([#4630](https://github.com/BookStackApp/BookStack/issues/4630))
220 <span style="font-size: 0.8em;opacity:0.9;">Header Image Credits: <span>Photo by <a href="https://commons.wikimedia.org/wiki/File:Min%C4%8Dol_(vrch_v_%C4%8Cergove)_08.JPG">Milan Bališin (CC-BY-SA-4)</a> - Image Modified</span></span>