ImageSettingsModel
23 Sep 20251 minute to read
Interface for a class ImageSettings
Properties
allowedTypes string[]
Specifies the allowed file types for selection.
display string
Specifies whether the image is inserted inline or with a break.
height string
Specifies the height of the image.
maxFileSize number
Specifies the maximum file size for image uploads in bytes.
maxHeight string|number
Defines the maximum height of the image.
maxWidth string|number
Defines the maximum width of the image.
minHeight string|number
Defines the minimum height of the image.
minWidth string|number
Defines the minimum width of the image.
path string
Specifies the path for storing and displaying images.
removeUrl string
Specifies the URL for the remove action that handles image removal on the server.
This URL should handle a POST request, with an argument named UploadFiles.
The event is triggered when uploading and canceling or removing an image in the insert image dialog, pasting, and removing an image in the Paste cleanup popup.
resize boolean
Enables resizing for the image element.
resizeByPercent boolean
Enables image resizing by percentage calculation.
saveFormat SaveFormat
Specifies whether the inserted image is saved as a blob or base64.
saveUrl string
Specifies the URL for the save action that handles uploaded images on the server.
This URL should handle a POST request, with an argument named UploadFiles.
The event is triggered when inserting an image via the Insert Image dialog, pasting an image, replacing an existing image, or dragging and dropping from the file browser.
width string
Specifies the width of the image.