Interface IFitTextRectangleSettings
A structure defining when and how the editor fits bounding rectangles to rich formatted text.
Package: @aurigma/design-editor-iframe
Remarks
You can use these settings in IRichTextDialogConfig.
Examples
configuration = {
widgets: {
RichTextDialog: {
bgColor: "lightgray",
fitTextRectangle: {
onAdd: "shrinkOrStretchToContent",
onUpdate: "shrinkOrStretchToContent"
},
wysiwygMode: true
}
}
};
Properties
onAdd
The fit mode for adding the text to the canvas.
Declaration
onAdd?: TextRectangleFitMode;
Property Value
Type | Description |
---|---|
TextRectangleFitMode | The fit mode for adding the text to the canvas. |
onUpdate
The fit mode for updating the text.
Declaration
onUpdate?: TextRectangleFitMode;
Property Value
Type | Description |
---|---|
TextRectangleFitMode | The fit mode for updating the text. |