Skip to content

Defaults for element styles - #2536

Merged
tf merged 4 commits into
codevise:masterfrom
tf:margin-defaults
Nov 20, 2026
Merged

tf merged 4 commits into
codevise:masterfrom
tf:margin-defaults

Conversation

@tf

@tf tf commented Nov 20, 2026

Copy link
Copy Markdown
Member

No description provided.

tf added 4 commits November 20, 2026 15:22
The style list input of the scrolled editor is also used in the entry
template defaults of the admin, which loads pageflow/ui but not the
editor stylesheet. The views remain available via pageflow/editor,
which re-exports pageflow/ui.

Position the menu relative to its offset parent. Outside the editor
there is no #editor_menu_container, so the menu stays inside the
relatively positioned button element and document offsets placed it
in the wrong spot.
Margins were offered for every content element type that renders the
position group of the common attributes. Entry defaults for styles
need to know from the type definition whether margins are supported,
to keep them out of the configuration of text blocks and other types
without a style list.

Content element types from plugins that render the position group
need to add `margin` to their `supportedStyles` to keep offering
margin styles.
Copy default margins, box shadow and outline color from entry
metadata into the configuration of newly inserted content elements
whose type supports the respective style. Since the values become
regular configuration properties, they show up as removable entries
in the style list of the content element.
Add a style list to the all elements section of the content element
defaults. Margins, box shadow and outline color chosen there are
stored as entry defaults and applied to new content elements whose
type supports the respective style.
@tf tf added this to the v17.3 milestone Nov 20, 2026
@tf
tf merged commit 19fc1f1 into codevise:master Nov 20, 2026
18 checks passed
@tf
tf deleted the margin-defaults branch November 20, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant