-
Notifications
You must be signed in to change notification settings - Fork 39
Image Properties
Srdjan Djenader edited this page Dec 4, 2017
·
1 revision
Possible settings:
- Image Size by its width and height.
- Alignment of image: Left, Right, Center, Inline or Floating.
- Transparent background (best for floating images).
plugins: [
'Rotate',
'Crop',
'Resize',
'Properties'
]
pluginsConfig: {
Properties: {
minWidth: 50,
minHeight: 50
}
}
var imagerOptionsPreview = {
plugins: ['Resize', 'Crop', 'Rotate', 'Toolbar'],
waitingCursor: 'wait',
editModeCss: editModeCss,
pluginsConfig: pluginsConfig,
quality: quality,
quality: 0.9,
targetScale: 0.5,
hideFileSelection: true
};
var imagerOptionsRedactor = {
plugins: ['Resize', 'Crop', 'Rotate', 'Toolbar', 'Save', 'Delete', 'Properties']
waitingCursor: 'wait',
editModeCss: editModeCss,
pluginsConfig: pluginsConfig,
quality: quality,
hideFileSelection: true
};
var redactorConfig = {
plugins: ['ImagerJs'],
ImagerJs: {
contentConfig: contentConfig,
hideFileSelection: true,
quality: quality,
redactor: imagerOptionsRedactor,
preview: imagerOptionsPreview
}
};
- Optional setting. If not specified, the settings shown in the example will be used.
-
minWidth
: sets the minimum width of properties window. -
minHeight
: sets the minimum height of properties window.
Getting Started
Plugins
Advanced Configuration
Redactor Plugin Specific
DEMO