Resources
- Last updated on June 24, 2024
- •
- 1 minute to read
Resources are the additional data you provide to assist the user to personalize the design. Unlike the input data like the design template, the user does not transform it. Unlike the settings, it does not change the behavior of the editor.
A good example of resources are the folders used as image libraries for the Images and Clipart buttons.
Like settings, resources are also organized into sections. They are described below.
{
"resources": {
"assetLibrary": {}
}
}
assetLibrary section
In Handy Editor resources, the assetLibrary
section allows for specifying the root folder for two image libraries — Images and Clipart.
clipartsFolder
defines the root folder for the Clipart library. This folder should contain vector content (preferable, single-color SVG shapes), like icons, decorations, etc.imagesFolder
defines the root folder for the Images library. It may contain content of any image format supported by Customer's Canvas, such as JPEG, PNG, PDF, TIFF, SVG, etc.
Note
The editor will load the content of all subfolders as well.
A path to the folder should be specified relative to the root of the Images section in your Customer's Canvas asset manager. Folders are separated by a slash character (/
). Adding a slash to the beginning of a path is allowed, but not necessary.
{
"assetLibrary": {
"clipartsFolder": "/Image Library/Clipart",
"imagesFolder": "Image Library/Images"
}
}