---
title: "IFitTextRectangleSettings Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.ifittextrectanglesettings.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# IFitTextRectangleSettings Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure defining when and how the editor fits bounding rectangles to rich formatted text.
  
 - example
     - ```
configuration = {
    widgets: {
        RichTextDialog: {
            bgColor: "lightgray",
            fitTextRectangle: {
                onAdd: "shrinkOrStretchToContent",
                onUpdate: "shrinkOrStretchToContent"
            },
            wysiwygMode: true
        }
    }
};
```
 
## Properties
 
### Optional onAdd
 
onAdd: [TextRectangleFitMode](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.htm.md)

The fit mode for adding the text to the canvas.
 
### Optional onUpdate
 
onUpdate: [TextRectangleFitMode](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.htm.md)

The fit mode for updating the text.
