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).

Interface: IFitTextRectangleSettings

A structure defining when and how the editor fits bounding rectangles to rich formatted text.

Remarks

You can use these settings in IRichTextDialogConfig.

Example

configuration = {
widgets: {
RichTextDialog: {
bgColor: "lightgray",
fitTextRectangle: {
onAdd: "shrinkOrStretchToContent",
onUpdate: "shrinkOrStretchToContent",
},
wysiwygMode: true,
},
},
};

Properties

onAdd?

optional onAdd?: TextRectangleFitMode

The fit mode for adding the text to the canvas.


onUpdate?

optional onUpdate?: TextRectangleFitMode

The fit mode for updating the text.

Was this page helpful?