-
Notifications
You must be signed in to change notification settings - Fork 113
Image
Srdjan Djenader edited this page Nov 29, 2017
·
1 revision
plugins: [
'Image'
]
pluginsConfig: {
'Image': {
scaleDownLargeImage: true,
maxImageSizeKb: 5120,
acceptedMIMETypes: ['image/jpeg', 'image/png', 'image/gif'],
cropIsActive: true
}
}
The configuration example shows the default settings that are used if no configuration is provided.
-
scaleDownLargeImage
:- If set to
true
the inserted image is automatically scaled down to fit into canvas.
- If set to
-
maxImageSizeKb
:- Sets the maximum size in KB of an image to be inserted.
- Settings of
null
or0
will allow any size of image to be inserted.
-
acceptedMIMETypes
:- Sets the allowed mime types to insert in canvas.
-
cropIsActive
:- Allows cropping of image during insertion.
- For this feature the
ImageCrop
plugin is needed.
Getting Started
Plugins
-
Drawing Tools
-
Drawing Options
-
Advanced Configuration
Redactor Plugin Specific
DEMO