Problem/Motivation
This is a follow-up issue to #3078287: Constrain the width of aligned images, media, blockquotes etc to a max of 75%
In that issue we added css alignment overrides like this:
+++ b/core/modules/filter/css/filter.align.css
@@ -0,0 +1,52 @@
+/**
+ * Within the WYSIWYG, if the alignment class is applied within a widget,
+ * unset the rules.
+ */
+.cke_widget_wrapper.align-left .align-left,
+.cke_widget_wrapper.align-right .align-right {
+ max-width: unset;
+}
+
+.cke_widget_wrapper.align-left .align-left {
+ margin-right: unset;
+}
+
+.cke_widget_wrapper.align-right .align-right {
+ margin-left: unset;
+}
This can have undesirable edge-case side effects if there are descendant elements which have alignment, they won't display the alignment.
Proposed resolution
TBD
Remaining tasks
TBD
User interface changes
TBD
API changes
TBD
Data model changes
TBD