IZoomConfig

A structure containing text zoom configuration of the rich text editor.

example
"RichTextDialog": {

    "zoom": {
        // enables the zoom slider in the rich text editor
        "enabled": true,
        "minZoomPct": 10,
        "maxZoomPct": 500,

        "autoZoom": {
            // enables auto zoom at opening the text editor
            "enabled": true,
            // auto zooms the text in if the text font size is less than this threshold
            "minFontSizeThresholdPt": 12,
            // auto zooms the text out if the text font size is more than this threshold
            "maxFontSizeThresholdPt": 36
        }
    }
}

Properties

Optional autoZoom

autoZoom: IAutoZoomConfig

Auto zoom configuration of the rich text editor.

Optional enabled

enabled: boolean

Enables a slider to show a zoom level.

Optional maxZoomPct

maxZoomPct: number

Zoom percentage. The most value of the slider, must be more than 100.

Optional minZoomPct

minZoomPct: number

Zoom percentage. The least value of the slider, must be less than 100.