Richtexteditor Ui - ImageSettingsModel
30 Sep 20261 minute to read
Interface for a class ImageSettings
Properties
allowedTypes string[]
Specifies the image file extensions that can be selected, dropped,
pasted, or uploaded.
API names use TypeScript camel casing.
dimension ImageDimensionOptions
Specifies the default and permitted dimensions of an image.
display ImageDisplayMode
Specifies how an image is positioned in the editor content.
Possible values are:
-
inline: Places the image within the current text flow. -
break: Places the image on a separate line.
imageUrl string|null
Specifies the public base URL used to resolve uploaded image names
returned by the server.
For example, when imageUrl is /uploads/images/ and the server
returns sample.png, the resulting source is
/uploads/images/sample.png.
maxFileSize number
Specifies the maximum permitted image file size, in bytes.
removeUrl string|null
Specifies the server endpoint used to remove an uploaded image.
resize boolean
Specifies whether users can resize images in the editor.
saveFormat ImageSaveFormat
Specifies how local images are represented when an upload endpoint
is not configured.
Possible values are:
-
Blob: Creates a temporary object URL for the image. -
Base64: Embeds the image as a Base64 data URL.
uploadUrl string|null
Specifies the server endpoint used to upload image files.
When this property is not configured, the editor uses saveFormat to
create a local image source.