- Issue created by @giordy
- 🇳🇿New Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
- 🇮🇳India ahsannazir
i am not able to reproduce the issue.
Can you please update this issue with more detailed steps to reproduce and screenshots. - 🇮🇹Italy giordy
1. I Click on the IMCE button (fig. 1).
2. I Select the image (fig. 2).
3. I Select "align center" (fig. 3).
4. Check the source code (fig. 4).
5. I Save.
6. The image is aligned to the left (fig. 5). Is
data-align="center"
present in the rendered page markup? Which theme are you using?- 🇮🇹Italy giordy
I use the Solo theme, but I've always had this problem with other themes and other versions of Drupal.
https://prova.gmpe.it/prove - 🇮🇹Italy giordy
Sorry, but I don't understand English well and I have to use Google translate.
1. I answered: I use the Solo theme https://www.drupal.org/project/solo →
2. I'm not very experienced and I don't know what to look at. the test page is this: https://prova.gmpe.it/proveThanks and best regards
Look at the page source to see the HTML. Anyway
class="text-align-center"
is on images so I think this is more to do with themes than with CKEditor or with that web site's text filters configurations.- 🇮🇹Italy giordy
In the page source there is
class="align-center"
and"align-right"
: center does not work, right works.I will try to contact the theme author, but I don't think this is the problem because it occurs with all the themes I use.
I usually align images in another way, but this problem is related to this other one: https://www.drupal.org/project/drupal/issues/3489646 🐛 CKEditor 5 moves some classes in the a tag ActiveOne or the other must be solved, unless a Drupal version of Colorbox-inline arrives.
Thanks and best regards
- 🇮🇹Italy giordy
The author of the Solo theme, provided me with some css to add to my custom theme.
Now it works perfectly.Kind regards