Image Resize
This Plugin provides a small image processor. You can limit the size of images directly on the client without upload images on your server. Big images will be resized automatically on paste.
## Installation
1. Download the plugin from http://github.com/nmmf/imageresize
2. Extract (decompress) the downloaded file into the plugins folder of your
CKEditor installation.
Example: http://example.com/ckeditor/plugins/imageresize
3. Enable the plugin by using the extraPlugins configuration setting.
Example: CKEDITOR.config.extraPlugins = "imageresize";
4. Config:
CKEDITOR.config.imageResize.maxWidth = 800;
CKEDITOR.config.imageResize.maxHeight = 800;
## Documentation
// Resize all images in a node:
CKEDITOR.plugins.imageresize.resizeAll(
CKEditor Instance,
(node) parent container,
(integer) max-width,
(integer) max-height
);
// Resize one image:
CKEDITOR.plugins.imageresize.resize(
CKEditor Instance,
(node) image,
(integer) max-width,
(integer) max-height
);
// Detect browser support:
// returns boolean true or false
CKEDITOR.plugins.imageresize.support();
Releases
Plugin versions | CKEditor versions | |||
---|---|---|---|---|
4.25 | 4.24 | 4.23 | ||
Version: 1.0.2 |
||||
Added configuration options |