Needs work
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Apr 2020 at 18:37 UTC
Updated:
4 Sep 2025 at 14:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kpaxman commentedThis would be essential for us. I think without this we're forced into using the "image" file type instead of media when we're inside CKeditor and it would really be nice to just have the one source (and we're using media elsewhere).
Comment #4
wim leersComment #6
kpaxman commentedNote that this module allows this: https://www.drupal.org/project/media_embed_extra
Would love some direction on whether or not this is likely to come to core.
Comment #8
smustgrave commented+1 this feature would be great. That module makes me nervous that it's not supported so being part of core would be great.
Comment #9
rar9 commented+1 for adding width +height ... it would help to get a better lighthouse score as well.
Comment #10
digitaltodd commented+2 for adding width+height - works in drupal 7
Comment #11
ericdsd commentedIt would be great in core eg when you have a small badge to include aside from the text and that it cannot be managed by a fixed structure. Even if it's not the cleanest way to do it's hard to explain a client that drupal doesn't allow to resize a picture ;-)
Comment #13
sudesh.solaskarHello Guys,
I have created an patch that supports resize feature of normal image upload to the media embedded image. By applying this patch we can resize the images coming from media library as well. Request you all to review this patch
Comment #14
sudesh.solaskarComment #15
sudesh.solaskarHello Guys, the previous patch was generated on 8.9.x branch. Here is the patch generated on 9.4.x branch
Comment #16
sudesh.solaskarAll of the above patches are getting failed because of the path mapping. Here i am attaching the finalized patch.
Comment #17
sudesh.solaskarHello, I have just updated few style related issue of edit icon positioning.
Comment #18
Justin Langley commentedWhen using the patch in #17, it doesn't appear to fully work. I can resize the image, but as soon as the handle is released the image reverts to it's original size. It appears the
data-attributes on thedrupal-mediaelement update, but theimginside always reverts to it's original size inside the editor.Comment #19
sudesh.solaskarHello @justin, You will have to add data-height & data-width attributes to the allowed tags list of ckeditor.
Comment #20
gauravvvv commentedRe-rolled patch #17, es6.js file was not updated in earlier patch. Please review.
Comment #21
gauravvvv commentedComment #22
efes commentedIs it possible to release this functionality for 9.3.x too?
Comment #24
zunzun commentedThanks @Gauravmahlawat. it's working to me.
Comment #25
smustgrave commentedThe last patch is failing existing tests
Also will need it's own moving to NW for that.
Comment #26
quietone commentedCKEditor has been removed from core, CKEditor 4 is removed from Drupal Core in 10.0.0
Comment #27
andrea.cividini commentedPatch #21 is not complete and not working for me on 9.4.7.
If we compare the patch content, the last one is missing the `setupResizer(_this3);` call that actually enables the resizer on the image. The previous one does work.
`
Comment #28
cilefen commentedIs this issue also covering CKEditor 5?
Comment #29
g-brodieiLooking forward to see this happen on CKEditor4 and CKEditor5!
Comment #30
timovos commentedTransformed the patch #17 into a working patch for Drupal 9.5.x. Needed to patch core and ckeditor module, so two patches are made.
Comment #31
nelo_drup commented#30 patch is compatible with entity embed?
Comment #32
crutch commented-
Comment #33
omsingh89 commentedUnable to apply patch ckeditor-enable-image-resize.patch #30
Drupal Core: 9.5.3, PHP: 8.1
Comment #34
omsingh89 commentedTransformed the patch #17 into a working patch for Drupal 9.5.x. For Media Core module patch use 'user media-enable-image-resize.patch' patch from #30, and created a new patch for CKEditor 4 Contrib module: 3132211_drupal_ckeditor_4_resize.patch
Comment #35
gauravvvv commentedComment #36
nelo_drup commented#34 Thanks for updating the patch, although I think a module as such would be better for that, both for media and for what does not use media
Comment #37
omsingh89 commentedIs it possible to release this functionality for Ckeditor 5?
Comment #38
rutiolmaNote that this concerns ckeditor4 only.
For ckeditor there's already a working module ckeditor_media_resize