Repository navigation
Defaults for element styles - #2536
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.