-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Align: Only add data-align for wide/full aligns if editor/theme …
…supports them (#9481) Full and wide aligns block alignments were always shown in the editor provided they were previously set or set because of a default value even if the current theme does not support them. This PR does not make the editor change anything that has been saved. It just updates the editor to not show wide and full alignments on existing blocks (and default attributes) when they are not supported by the current theme so what the user sees in backend matches the front-end. Unless explicitly changed by the user the aligns continue to be wide/full and if later the user changes to a theme that supports this aligns the editor will show again wide/full without any change. The wide and full alignments were already not being shown in the Block alignment toolbar if the theme does not support them.
- Loading branch information
1 parent
cddee64
commit 300a2de
Showing
2 changed files
with
215 additions
and
112 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.