[PR #5928] [MERGED] Initial developer API for WYSIWYG editor #6600

Closed
opened 2026-02-05 10:36:27 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5928
Author: @ssddanbrown
Created: 11/30/2025
Status: Merged
Merged: 12/6/2025
Merged by: @ssddanbrown

Base: developmentHead: lexical_dev_api


📝 Commits (7)

  • 9e8088f JS: Bumped up JS package versions, and node version
  • 9d732d8 Lexical: Started dev API outline
  • ebceba0 Lexical API: Started working on docs format and jest testing
  • dfdcfcf Lexical API: Added content module, testing and documented
  • 8890746 Lexical API: Added public event to access editor API
  • ab4b1c8 Lexical API: Reviewed docs, Made toolbar its own UI class
  • b5246a2 Lexical API: Updated docs to align method format

📊 Changes

20 files changed (+1212 additions, -634 deletions)

View changed files

📝 dev/docs/development.md (+1 -1)
📝 dev/docs/javascript-code.md (+4 -0)
📝 dev/docs/javascript-public-events.md (+46 -5)
dev/docs/wysiwyg-js-api.md (+127 -0)
📝 package-lock.json (+573 -583)
📝 package.json (+15 -15)
resources/js/wysiwyg/api/__tests__/api-test-utils.ts (+14 -0)
resources/js/wysiwyg/api/__tests__/content.test.ts (+93 -0)
resources/js/wysiwyg/api/__tests__/ui.test.ts (+123 -0)
resources/js/wysiwyg/api/api.ts (+14 -0)
resources/js/wysiwyg/api/content.ts (+26 -0)
resources/js/wysiwyg/api/ui.ts (+89 -0)
📝 resources/js/wysiwyg/index.ts (+11 -0)
📝 resources/js/wysiwyg/lexical/core/__tests__/utils/index.ts (+9 -2)
📝 resources/js/wysiwyg/services/common-events.ts (+1 -1)
📝 resources/js/wysiwyg/ui/defaults/toolbars.ts (+16 -14)
📝 resources/js/wysiwyg/ui/framework/blocks/overflow-container.ts (+11 -1)
📝 resources/js/wysiwyg/ui/framework/manager.ts (+4 -0)
📝 resources/js/wysiwyg/utils/actions.ts (+29 -9)
📝 resources/js/wysiwyg/utils/nodes.ts (+6 -3)

📄 Description

For #5763

Todo

  • Address todos in code

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/5928 **Author:** [@ssddanbrown](https://github.com/ssddanbrown) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 12/6/2025 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `development` ← **Head:** `lexical_dev_api` --- ### 📝 Commits (7) - [`9e8088f`](https://github.com/BookStackApp/BookStack/commit/9e8088f18637a2c893c6ba0958cc66fb7e2b4ded) JS: Bumped up JS package versions, and node version - [`9d732d8`](https://github.com/BookStackApp/BookStack/commit/9d732d8dd826af6b988ab103560b9b84eab8640e) Lexical: Started dev API outline - [`ebceba0`](https://github.com/BookStackApp/BookStack/commit/ebceba0afe50ad4c1d10d1542c24e189857371a0) Lexical API: Started working on docs format and jest testing - [`dfdcfcf`](https://github.com/BookStackApp/BookStack/commit/dfdcfcfdb86007a76ed33ed8749b58ea00d54158) Lexical API: Added content module, testing and documented - [`8890746`](https://github.com/BookStackApp/BookStack/commit/889074627840c4ccd14a9b525e33d571d56e3191) Lexical API: Added public event to access editor API - [`ab4b1c8`](https://github.com/BookStackApp/BookStack/commit/ab4b1c8efa64b89a549ade67c713e43f7d34fb57) Lexical API: Reviewed docs, Made toolbar its own UI class - [`b5246a2`](https://github.com/BookStackApp/BookStack/commit/b5246a28f0268460588ae33e555337493426e2b0) Lexical API: Updated docs to align method format ### 📊 Changes **20 files changed** (+1212 additions, -634 deletions) <details> <summary>View changed files</summary> 📝 `dev/docs/development.md` (+1 -1) 📝 `dev/docs/javascript-code.md` (+4 -0) 📝 `dev/docs/javascript-public-events.md` (+46 -5) ➕ `dev/docs/wysiwyg-js-api.md` (+127 -0) 📝 `package-lock.json` (+573 -583) 📝 `package.json` (+15 -15) ➕ `resources/js/wysiwyg/api/__tests__/api-test-utils.ts` (+14 -0) ➕ `resources/js/wysiwyg/api/__tests__/content.test.ts` (+93 -0) ➕ `resources/js/wysiwyg/api/__tests__/ui.test.ts` (+123 -0) ➕ `resources/js/wysiwyg/api/api.ts` (+14 -0) ➕ `resources/js/wysiwyg/api/content.ts` (+26 -0) ➕ `resources/js/wysiwyg/api/ui.ts` (+89 -0) 📝 `resources/js/wysiwyg/index.ts` (+11 -0) 📝 `resources/js/wysiwyg/lexical/core/__tests__/utils/index.ts` (+9 -2) 📝 `resources/js/wysiwyg/services/common-events.ts` (+1 -1) 📝 `resources/js/wysiwyg/ui/defaults/toolbars.ts` (+16 -14) 📝 `resources/js/wysiwyg/ui/framework/blocks/overflow-container.ts` (+11 -1) 📝 `resources/js/wysiwyg/ui/framework/manager.ts` (+4 -0) 📝 `resources/js/wysiwyg/utils/actions.ts` (+29 -9) 📝 `resources/js/wysiwyg/utils/nodes.ts` (+6 -3) </details> ### 📄 Description For #5763 ### Todo - [x] Address todos in code --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:36:27 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6600