Toolkit

TK.ImageEditor

An image upload and edit control. This is also available as form field type "image". Use the .GetValue() method to retrieve the value as url (by default an data: url).

{
    _: TK.ImageEditor
}

Example using blob values

{
    _: TK.ImageEditor,
    ValueType: "blob"
}

Example using the Toolkit API Server Storage

This will host the uploaded image on the public Toolkit API. A custom api endpoint can be defined by setting TK.ServerStorage.Url to your private hosted Toolkit API.

Do not store any illegal or copyright infringement material using this API. Please send an email to report unlawful files stored using this API.


Content uploaded to the public Toolkit API is scanned periodically to detect and remove aforementioned material.

{
    _: TK.ImageEditor,
    ValueType: "url"
}