Dan Brown [Tue, 26 Aug 2025 13:41:42 +0000 (14:41 +0100)]
Lexical: Improved nested details interaction
- Set to open by default on insert.
- Updated selection handling not to always fully cascade to lowest
editable child on selection, so parents can be reliably selected.
- Updated mouse handling to treat details panes like the root element,
inserting within-details where relevant.
Dan Brown [Sun, 24 Aug 2025 13:02:21 +0000 (14:02 +0100)]
Imports: Fixed drawing IDs not being updated in content
Would leave imported content with inaccessible images in many cases (or
wrong references) although the drawing was still being uploaded &
related to the page.
Added test to cover.
Dan Brown [Mon, 11 Aug 2025 13:19:48 +0000 (14:19 +0100)]
ZIP Exports: Fixed reference handling for images
Recent changes could mean missed references for images in non-page
locations. This fixes that, and tries to ensure images are used if we
already have a page-based image as part of the ZIP, otherwise ensure we
have a page as part of the export to attach the image to.
Dan Brown [Tue, 5 Aug 2025 15:43:06 +0000 (16:43 +0100)]
Commands: Added testing for initial admin changes
- Also changed first-admin to initial.
- Updated initial handling to not require email/name to be passed, using
defaults instead.
- Adds missing existing email use check.
- Removed URL protocol allow-list to allow any as per old editor.
- Added mouse handling, so that clicks below many last hard-to-escape
block types will add an empty new paragraph for easy escaping &
editing.
Dan Brown [Thu, 24 Jul 2025 15:51:11 +0000 (16:51 +0100)]
Lexical: Table cell bg and format setting fixes
- Updated table cell background color setting to be stable by
specifically using the background property over the general styles.
- Updated format shorcuts to be correct header levels as per old editor
and format menu.
- Updated format changes to properly update UI afterwards.
Dan Brown [Tue, 22 Jul 2025 15:42:47 +0000 (16:42 +0100)]
MD Editor: Worked to improve/fix positioning code
Still pending testing. Old logic did not work when lines would wrap, so
changing things to a character/line measuring technique.
Fixed some other isues too while testing shortcuts.
Dan Brown [Tue, 15 Jul 2025 14:24:31 +0000 (15:24 +0100)]
Mail: Removed custom symfony/mailer fork
Moved to standard symfony mailer now that my patches have been
upstreamed. This changes the config to work with the symfony option,
following the same overall logic.
Also updated testing to allow test runs via mulitple custom env options.
Dan Brown [Wed, 2 Jul 2025 11:15:25 +0000 (12:15 +0100)]
Perms: Removed entity perm regen on general update
Should not be needed here as this is not directly used for information
which should impact permissions.
Been through uses to ensure that this is the case.
Dan Brown [Mon, 30 Jun 2025 12:19:45 +0000 (13:19 +0100)]
Layout: Improved sidebar sizing, and dropdown consideration
- Updated tri-layout sidebars to have less padding and to avoid cutting
off content when in single-sidebar mode.
- Updated dropdown handling to consider the parent scroll container when
deciding to drop upwards, to help prevent cut-off.
Dan Brown [Wed, 25 Jun 2025 13:16:01 +0000 (14:16 +0100)]
Comments: Switched to lexical editor
Required a lot of changes to provide at least a decent attempt at proper
editor teardown control.
Also updates HtmlDescriptionFilter and testing to address issue with bad
child iteration which could lead to missed items.
Renamed editor version from comments to basic as it'll also be used for
item descriptions.
bumperbox [Sun, 22 Jun 2025 21:31:39 +0000 (09:31 +1200)]
CommentDisplayTest correct namespace
Class Entity\CommentDisplayTest located in ./tests/Entity/CommentDisplayTest.php does not comply with psr-4 autoloading standard (rule: Tests\ => ./tests). Skipping.
Dan Brown [Sun, 15 Jun 2025 14:22:27 +0000 (15:22 +0100)]
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.
Dan Brown [Sun, 15 Jun 2025 12:55:42 +0000 (13:55 +0100)]
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.