Configuring Copyfitting for New Items
- Less than a minute to read
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.