Skip to main content

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?