- Issue created by @caspervoogt
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@caspervoogt: Are you requesting this for all media or just image media?
@cilefen: Thanks! The most closely related issue is ✨ Arbitrary sizing of media - images for CKEditor Needs work , which was in core for as long as CKEditor 4 was in core.
Drupal 9.4.9 → was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule → and the Allowed changes during the Drupal core release cycle → .
- 🇺🇸United States caspervoogt
@Wim Leers; I was asking for media images, but could imagine some people might want it for videos too.
- 🇺🇸United States nessthehero
Also interested in this. If not allowing resizing by clicking and dragging, an editor should be able to provide a width and height to the media item.
- 🇮🇱Israel heyyo Jerusalem
I didn't test this module, but it seems the manual edition of the width, height and also alignment is provided by this contrib module:
https://www.drupal.org/project/media_embed_extra → - 🇺🇦Ukraine quadrexdev Lutsk
It would be great to have this feature, also interested in this.
- 🇺🇸United States dehacker
+1 for this feature. Seems like a must for content editors. We will continue to use CKE5 image upload widget due to this lack of editor experience.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Closed ✨ CKEditor5, Provide a way to embed Media Image as primitive image in editor, to enable image edit functions Closed: duplicate as a duplicate.
- 🇨🇦Canada Austin986
Media image is not resizable directly in CKEditor, because it's rendered with tag.
I made a patch to configure whether to use<drupal-media>
or<img>
, and by enabling<img>
tag, you can easily resize images imported via Media Library in CKEditor by drag drop.Here is the issue link with the patch. It 's built for 9.5x dev, and hope they will merge this feature into new Drupal core update.
https://www.drupal.org/project/drupal/issues/3359725 ✨ CKEditor5, Provide a way to embed Media Image as primitive image in editor, to enable image edit functions Closed: duplicate
- 🇺🇸United States smustgrave
What about following what media embed extras did and set height/width? Or min-height/min-width?
Or could drupal-media be wrapped in a div, if that can be easier to resize?
- 🇺🇸United States smustgrave
So if we added text fields to the media for max width and max height would that not solve the issue and still keep it responsive?
Maybe they could be data attributes to be converted to style later.
Would still need the editor to know what they’re doing. Meaning if they select a large view mode but set the max width/height to be 100/100.
Have 0 idea how to do that in ckeditor5 though
- Status changed to Closed: duplicate
over 1 year ago 10:59am 21 June 2023 - 🇺🇸United States DamienMcKenna NH, USA
The community is consolidating around this issue as a starting point: ✨ Allow editing of Width and Height of embedded images Active
- 🇺🇸United States Chris Matthews
CKEditor Media Resize → looks like a promising contrib solution.
- 🇺🇸United States lhridley
CKEditor Media Resize requires that you limit HTML tags, which makes it virtually impossible to configure for a Full HTML editor. This needs to be fixed in Drupal Core.