Settings
- Last updated on March 3, 2025
- •
- 6 minutes to read
Settings consist of feature flags and configurations that alter the behavior of the Template Editor.
The settings are structured into sections, where each section controls a specific group of related properties, such as the toolbar, pages, or the editor's workspace.
Supported sections are listed below.
{
"settings": {
"itemBuilder": { },
"designViewer": { },
"colorPicker": { },
"pages": {
"list": { },
"properties": { }
},
"itemProperties": { },
"toolbar": { },
"editorSettings": { },
"itemValidation": { },
"listSettings": { },
"snapLines": {}
}
}
Let's take a closer look at these settings.
itemBuilder
The itemBuilder object allows you to define the initial properties of objects to be created in the editor. This object is defined by using the IItemData interfaces. You can set initial properties for the following design element types:
textrectangleellipseimagebarcodeqrCode
For example, this is how you can change default settings for text, ellipses, and images.
{
"itemBuilder": {
"text": { "isVertical": true },
"ellipse": { "fillColor": "rgb(255, 100, 13)" },
"image": { "borderWidth": 10, "borderColor": "rgb(255, 0, 13)" }
}
}
designViewer
The designViewer object manages the user's interaction with the work area, where they manipulate design elements.
The following example changes the units to inches, turns on the 0.5 grid, and hides the rulers.
{
"designViewer": {
"unit": "in",
"grid": { "step": 0.5, "enabled": true },
"rulers": false
}
}
In the grid object, the step is measured in points (1/72 inch).
pages
This object allows for changing the settings of the Page panel and the Pages list:
pages.propertiespages.list
pages.properties
The pages.properties object defines which page settings can be edited:
pagePropertiesallows/disallows editing the page size.areasallows/disallows editing page areas.backgroundallows/disallows editing the background of the page.
To disable editing and only display the settings, set their readonly property to true. For example, to disable changing all these page properties, use:
{
"pages": {
"properties": {
"pageProperties": { "readonly": true },
"areas": { "readonly": true },
"background": { "readonly": true }
}
}
}
pages.list
The pages.list object allows you to customize the behavior of the Pages list.
There are two objects to configure:
createOrRemoveallows you to disable creating and deleting the pages. If its propertyenabledset tofalse, it hides the Create button and disables the context menu for the Pages list.changeOrderallows you to disable changing the order of pages using D&D. To do so, set itsenabledproperty tofalse.
To disable adding, removing, and changing the page order, use:
{
"pages": {
"list": {
"createOrRemove": { "enabled": false },
"changeOrder": { "enabled": false }
}
}
}
itemProperties
The itemProperties object allows you to change the appearance of object property groups in the editor.
The following property groups can be disabled:
generalcontains the permission properties for the target editorstoggleSetcontains properties used by toggle set's functionalitydatacontains properties used by the VDP functionality
To hide these property groups, use:
{
"itemProperties": {
"data": false,
"toggleSet": false,
"general": false
}
}
toolbar
The toolbar object allows you to configure buttons for creating design elements.
You can add buttons so that the user can create:
textimagerectangleellipsebarcodeqrCode
To hide the buttons, use
{
"toolbar": {
"barcode": { "enabled": false },
"qrCode": { "enabled": false },
"rectangle": { "enabled": false },
"ellipse": { "enabled": false },
"text": { "enabled": false },
"image": { "enabled": false }
}
}
editorSettings
This object enables the Editor settings button. To disable this button, set enabled to false.
To hide the button, use:
{
"editorSettings": { "enabled": false }
}
itemValidation
The itemValidation object configures the validation rules for items in the design. For the description of the preflight check and monitored violations in Customer's Canvas, refer to the Validation Warnings topic.
Validation rules can be divided into three groups:
Design areas and text
The itemValidation object configures the design validation in the Template Editor:
regionenables the region validation.bleedenables the bleed zone validation.textCropenables checking that all text fits.inPlaceNotSupportedenables checking text elements for WYSIWYG mode support.
To disable checking unsupported text properties, use:
{
"settings": {
"itemValidation": {
"inPlaceNotSupported": false
}
}
}
Safety lines
Safety line validation is controlled by the group of the following properties:
safetyLineenables the safety line validation.safetyLinesis one of"InsideAll"|"PartiallyInsideAny"|"InsideAny"|"Disabled". For more details, refer to the Validation Warnings topic.toleranceis the distance the allows you to disable warnings about violations of safety lines or the bleed zone when an object is close enough to them.
To check if the elements are inside all the safety lines with acceptable tolerance, use:
{
"settings": {
"itemValidation": {
"tolerance": 0.1,
"safetyLines": {
"enabled": true,
"mode": "InsideAll"
}
}
}
}
Image resolution
Image resolution is controlled by the group of the following properties:
targetResolution– the DPI of the print files.enabled– iftrue, displays the quality meter.warning– the percentage of the acceptable quality level.bad– the percentage of unacceptable quality level.qualityChangeContainersEnabled– iftrue, displays the DPI bar.
For example, to check the image resolution with a target value of 200 DPI and display warnings at 160 DPI and errors at 100 DPI, use:
{
"itemValidation": {
"qualityMeter": {
"enabled": true,
"targetResolution": 200,
"warning": 80,
"error": 50
}
}
}
Here, the targetResolution specifies a DPI of the print files, and the bad and warning properties specify two image quality levels as a percentage of DPI. In this example, a DPI lower than 150 will be considered bad, a DPI in the range from 150 to 240 will display a warning, and a DPI higher than 240 will be considered acceptable.
listSettings
For the description of the list settings in Customer’s Canvas, refer to the Configuring lists topic.
bulletChar– the symbolfirstLineIndent– the first line indentlevelIndent– a new level indentlistIndent– the entire list indentmaxLevel– the number of nested levelsnumberingFormat– the format, one of"number","lowerLetter","upperLetter","lowerRoman","upperRoman","none".tabOffset– the distance between the bullet and the first letter.
For example, this is how you can limit the list to a single level and customize the bullet points.
{
"settings": {
"listSettings": {
"maxLevel": 1,
"bulletChar": "*"
}
}
snapLines
The snapLines object allows you to define which elements the snap line should cling to.
snapToItemsenables snapping to design elements.snapToLockedenables snapping to locked design elements.snapToPageenables snapping to page bounds.snapToGridenables snapping to grid cells.snapToRegionenables snapping to regions.snapToSafetyLinesenables snapping to safety lines.
For example, this is how you can disable snapping to locked design elements.
{
"settings": {
"snapLines": {
"snapToLocked": { "enabled": false }
}
}
}