- 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.
- ๐บ๐ธUnited States c0debabe Boston, MA
Yeah I am having trouble getting CKEditor Media Resize to work correctly.
If it does work, the maintainers need to provide more robust documentation with screenshots so I know which settings are on or off.