ImageResize plugin support #94
-
Currently, the CKEditor build that ships with this package doesn't have the ImageResize plugin included. This plugin allows for manual resize handles as well as scaling images to preset widths. Obviously, this should not be a replacement for image transforms since we're just scaling images in CSS, but resizing images works well alongside the functionality of ImageStyle which is included by default since it appears in the same toolbar. We may use ImageStyle to replicate (sparingly) floating images sometimes for clients and it is much less flexible without ImageResize. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
-
How to make this popover show ? It don't seem to appear out of the box. |
Beta Was this translation helpful? Give feedback.
-
Sad the hear the imageResize plugin wasn't shipped, it's a super helpful tool for publishers to make small adjustments to images, quickly, where the image doesn't actually resize its not really an issue. Is there a way to install this manually instead? Thanks |
Beta Was this translation helpful? Give feedback.
-
In the meantime how can i get this dropdown to appear over my image? I have set a transform but im not seeing it.. craft 4.5.11.1 cke 3.6.0 |
Beta Was this translation helpful? Give feedback.
-
I'm trying to set up the ck config to allow for the use of image transforms as mentioned above, but I get the warning in the console that the item "transformImage" for toolbar is unavailable (toolbarview-item-unavailable). Could anyone please help? It'd be great to be able to resize images within the ckeditor. Thanks EDIT: running Craft CMS 4.13.5, CKEditor 3.10.0, PHP 8.2.17 |
Beta Was this translation helpful? Give feedback.
We just released CKEditor 3.4.0 with the ability to change the selected transform for inserted images:
It’s limited to the list of Available Transforms your field is configured with, as well as an “Original” option.
(We chose to go this route instead of pulling in the ImageResize plugin, as ImageResize only touches the
<img>
’swidth
attribute; it has no control over the loaded image size. Using transforms means the image will be served with the correct size in the first place.)