ImageBlockSettings
16 Dec 20251 minute to read
Configures settings related to image block in the editor.
Properties
allowedTypes string[]
Specifies the allowed image file types that can be uploaded.
Common types include ‘.jpg’, ‘.jpeg’, and ‘.png’.
Defaults to [‘.jpg’, ‘.jpeg’, ‘.png’]
enableResize boolean
Specifies whether to enable resize for image.
Defaults to true
height string|number
Specifies the display height of the image.
Can be defined in pixels or percentage.
Defaults to ‘auto’
maxHeight string|number
Specifies the maximum height of the image in pixels or as a string unit.
Prevents the image from being resized beyond this value.
Defaults to ’’
maxWidth string|number
Specifies the maximum width of the image in pixels or as a string unit.
Prevents the image from being resized beyond this value.
Defaults to ’’
minHeight string|number
Specifies the minimum height of the image in pixels or as a string unit.
Prevents the image from being resized below this value.
Defaults to ’’
minWidth string|number
Specifies the minimum width of the image in pixels or as a string unit.
Prevents the image from being resized below this value.
Defaults to ’’
saveFormat SaveFormat
Specifies the format to save the image.
Accepts either ‘base64’ for inline image encoding or ‘blob’ for binary object representation.
Defaults to ‘Base64’
width string|number
Specifies the display width of the image.
Can be defined in pixels or percentage.
Defaults to ‘auto’