Repository navigation
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. |
Replies: 5 comments 8 replies
|
How to make this popover show ? It don't seem to appear out of the box. |
|
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 |
|
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 |




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>’swidthattribute; 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.)