Title: Content of book lost, when switching to new WYSIWYG editor · Issue #5378 · BookStackApp/BookStack · GitHub
Open Graph Title: Content of book lost, when switching to new WYSIWYG editor · Issue #5378 · BookStackApp/BookStack
X Title: Content of book lost, when switching to new WYSIWYG editor · Issue #5378 · BookStackApp/BookStack
Description: Describe the Bug Hi I encountered a bug with a particular book. When I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented. Fortunately, the content is not lost. ...
Open Graph Description: Describe the Bug Hi I encountered a bug with a particular book. When I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented...
X Description: Describe the Bug Hi I encountered a bug with a particular book. When I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented...
Opengraph URL: https://github.com/BookStackApp/BookStack/issues/5378
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Content of book lost, when switching to new WYSIWYG editor","articleBody":"### Describe the Bug\n\nHi\r\n\r\nI encountered a bug with a particular book.\r\nWhen I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented. Fortunately, the content is not lost. I can click on \"Delete draft\", go back and then the content is available again.\r\n\r\nThis issue ocourred only in one particular book so far.\r\n\r\nHere is the error, which is visible in devtools -> console:\r\n\r\n```js\r\nwysiwyg.js?version=v24.12:12 Error: Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: Expected node %s to have a parent.\r\n at x (wysiwyg.js?version=v24.12:4:591)\r\n at Eo.getParentOrThrow (wysiwyg.js?version=v24.12:6:5367)\r\n at Eo.insertBefore (wysiwyg.js?version=v24.12:6:10148)\r\n at $N (wysiwyg.js?version=v24.12:12:54218)\r\n at Di (wysiwyg.js?version=v24.12:12:51994)\r\n at _o (wysiwyg.js?version=v24.12:14:11452)\r\n at wysiwyg.js?version=v24.12:16:65925\r\n at jd (wysiwyg.js?version=v24.12:12:24836)\r\n at xe (wysiwyg.js?version=v24.12:12:25794)\r\n at po.update (wysiwyg.js?version=v24.12:12:43951)\r\njd @ wysiwyg.js?version=v24.12:12\r\nxe @ wysiwyg.js?version=v24.12:12\r\nupdate @ wysiwyg.js?version=v24.12:12\r\nZn @ wysiwyg.js?version=v24.12:16\r\nZ$ @ wysiwyg.js?version=v24.12:20\r\n(anonymous) @ app.js?version=v24.12:22\r\nPromise.then\r\nsetup @ app.js?version=v24.12:22\r\ninitComponent @ app.js?version=v24.12:22\r\ninit @ app.js?version=v24.12:22\r\n(anonymous) @ app.js?version=v24.12:22\r\n```\n\n### Steps to Reproduce\n\n1. Open a Book, which is in the old WYSIWYG format\r\n2. Click on \"Edit\" (or press 'e')\r\n3. Click on \"Draft Options\"\r\n4. Select \"Switch to new WYSIWYG (in alpha testing)\r\n5. Confirm the Dialogue box with button Continue\r\n\"Are you sure you want to change the editor for this page?\r\nConsider the following when changing editors:\"\r\n6. Confirm Browser Message \"Leave website?\"\r\n\r\n7. End -> Blank page visible and error message in \"Devtools -> Console\" is visible\n\n### Expected Behaviour\n\nThe content should not be lost when switching to the new editor.\n\n### Screenshots or Additional Context\n\n\r\nhttps://github.com/user-attachments/assets/973f26ff-317f-4459-9f45-46faee076d7c\r\n\r\n\n\n### Browser Details\n\nBrave Browser\n\n### Exact BookStack Version\n\nBookStack v24.12","author":{"url":"https://github.com/miracuruzrh","@type":"Person","name":"miracuruzrh"},"datePublished":"2024-12-31T11:27:39Z","url":"https://github.com/BookStackApp/BookStack/issues/5378"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:79b89c62-33f4-686a-7471-ed76b9ed3e99 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9110:D1B6C:2535B73:33CE6FC:6AFD4150 |
| html-safe-nonce | 02ec57f0634536123925e1ceeb239641286159e5af92c903af9cc9c5b2cc8bd0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTEwOkQxQjZDOjI1MzVCNzM6MzNDRTZGQzo2QUZENDE1MCIsInZpc2l0b3JfaWQiOiI3MzgyNzQ5MzM0MjA0MTM3ODA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 53fbe7581ef3b0466dd6b2a38e136b736e104a0974bd1045bca851390a445372 |
| hovercard-subject-tag | issue:2764272583 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/BookStackApp/BookStack/5378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c22e1cb354dfd8101812c267eed6b939f3a79d892a9e748236104b1dc89b4538/BookStackApp/BookStack/issues/5378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c22e1cb354dfd8101812c267eed6b939f3a79d892a9e748236104b1dc89b4538/BookStackApp/BookStack/issues/5378 |
| og:image:alt | Describe the Bug Hi I encountered a bug with a particular book. When I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miracuruzrh |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/BookStackApp/BookStack git https://github.com/BookStackApp/BookStack.git |
| octolytics-dimension-user_id | 20912696 |
| octolytics-dimension-user_login | BookStackApp |
| octolytics-dimension-repository_id | 41589337 |
| octolytics-dimension-repository_nwo | BookStackApp/BookStack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 41589337 |
| octolytics-dimension-repository_network_root_nwo | BookStackApp/BookStack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width