Back to Website
Show / Hide Table of Contents

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.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback