]> BookStack Code Mirror - bookstack/commit
Lexical: Fixed media resize handling
authorDan Brown <redacted>
Sun, 15 Jun 2025 12:55:42 +0000 (13:55 +0100)
committerDan Brown <redacted>
Sun, 15 Jun 2025 12:55:42 +0000 (13:55 +0100)
commit8d4b8ff4f375c014d36ccbf034dfc77bb8481804
tree5f227c709a18ce603710c7ab6bcd2352e05af62d
parent77a88618c21d66cf663bb37979260539df7528e3
Lexical: Fixed media resize handling

- Updating height/width setting to clear any inline CSS width/height
  rules which would override and prevent resizes showing. This was
  common when switching media from old editor.
  Added test to cover.
- Updated resizer to track node so that it is retained & displayed
  across node DOM changes, which was previously causing the
  resizer/focus to disappear.
resources/js/wysiwyg/lexical/core/__tests__/utils/index.ts
resources/js/wysiwyg/lexical/rich-text/LexicalMediaNode.ts
resources/js/wysiwyg/lexical/rich-text/__tests__/unit/LexicalMediaNode.test.ts [new file with mode: 0644]
resources/js/wysiwyg/ui/framework/helpers/node-resizer.ts
resources/js/wysiwyg/utils/dom.ts
resources/sass/_editor.scss