To do:
Background
Our inline images in CKEditor 4 use a template that's specific to entity embed, which we won't need (or want) in CKEditor 5.
We have CKEditor 5 on the new VPUE site, and the in-development CLASSE site. "Out of the box," inline images don't get aligned properly when you use the image alignment thingy in CKE 5. (I don't have an example handy, because we fixed it on those two sites, and I don't have a CD Demo multidev with CKE 5 right now.)
To fix
On VPUE and CLASSE, we added new versions of media.html.twig and media--image.html.twig, adding the div with attributes back in (that was removed in the cwd_base versions of these templates).
- Pantheon site machine name "vpue-new"
- web/themes/custom/cwd_vpue/templates/overrides/media.html.twig
- web/themes/custom/cwd_vpue/templates/overrides/media--image.html.twig
- Pantheon site machine name "classe"
- web/themes/custom/cwd_classe/templates/overrides/media.html.twig
- web/themes/custom/cwd_classe/templates/overrides/media--image.html.twig
See it in action
At the time of writing, the outcome of these ^^ template files can be seen on these demo pages:
To do:
Background
Our inline images in CKEditor 4 use a template that's specific to entity embed, which we won't need (or want) in CKEditor 5.
We have CKEditor 5 on the new VPUE site, and the in-development CLASSE site. "Out of the box," inline images don't get aligned properly when you use the image alignment thingy in CKE 5. (I don't have an example handy, because we fixed it on those two sites, and I don't have a CD Demo multidev with CKE 5 right now.)
To fix
On VPUE and CLASSE, we added new versions of media.html.twig and media--image.html.twig, adding the div with attributes back in (that was removed in the cwd_base versions of these templates).
See it in action
At the time of writing, the outcome of these ^^ template files can be seen on these demo pages: