Skip to main content
⚠️ Archived Version

You are viewing documentation for Design Editor version 7.2, which is no longer actively maintained. For the latest features and updates, please refer to the current version (7.3).

Configuring copyfitting for new items

Your users can add new text elements to the canvas as well as open pre-designed templates. To enable copyfitting for new text elements, you can specify the overflow strategy and shrink mode through the defaultItemsConfig object of clientConfig.json. Also, you need to enable the Add bounded text button in the Toolbox.

{
"defaultItemsConfig": {
"text": {
"overflowStrategy": "FitToWidth",
"textShrinkMode": "Scale"
}
},
"widgets": {
"Toolbox": {
"buttons": [ "Text", "BoundedText", "Image" ]
}
}
}

For more details about default item configuration, you can refer to the Toolbox topic.

Was this page helpful?