]> BookStack Code Mirror - bookstack/commit
Lexical: Added a media toolbar, improved toolbars and media selection
authorDan Brown <redacted>
Sun, 15 Jun 2025 14:22:27 +0000 (15:22 +0100)
committerDan Brown <redacted>
Sun, 15 Jun 2025 14:22:27 +0000 (15:22 +0100)
commit1611b0399f2ccfcf5f261642a12076cde91b9600
treefedd5883a5dce52fd6a4effac7244b9ed983cc1b
parent8d4b8ff4f375c014d36ccbf034dfc77bb8481804
Lexical: Added a media toolbar, improved toolbars and media selection

- Updated toolbars to auto-refresh ui if it attempts to update targeting
  a DOM element which no longer exists.
- Removed MediaNode dom specific click handling which was causing
  selection issues, and did not seem to be needed now.
resources/js/wysiwyg/lexical/rich-text/LexicalMediaNode.ts
resources/js/wysiwyg/ui/defaults/toolbars.ts
resources/js/wysiwyg/ui/framework/toolbars.ts
resources/js/wysiwyg/ui/index.ts