---
title: "Interface: IRichTextDialogConfig | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.IRichTextDialogConfig/"
---

# Interface: IRichTextDialogConfig

> The dialog providing text formatting options.

## Remarks

For details, see the [Rich text editor](https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/rte.html) topic.

## Example

``` js
configuration = {
   widgets: {
       RichTextDialog: {
           bgColor: "lightgray",
           ckeditorConfig:{
               specialChars: ["&quot;", "&rsquo;", [ "@", "Custom label" ] ]
           },
           fitTextRectangle: {
               onAdd: "shrinkOrStretchToContentHeight",
               onUpdate: "stretchToContentHeight"
           },
           richComboValues: {
               padding: { max: 50, min: 5, step: 5 }
           },
           textOutline: {
               enabled: true
           },
           toolbarConfig: [
               { name: "clipboard", items: ["Cut", "Copy", "Paste", "-", "Undo", "Redo"] }, "/",
               { name: "basicstyles", items: ["Bold", "Italic", "Underline", "-", "RemoveFormat"] }
           ],
           wysiwygMode: true
       }
   }
};
```

## Properties

### forcePasteAsPlainText?

> `optional` **forcePasteAsPlainText?**: `boolean`

internal

***

### bgColor?

> `optional` **bgColor?**: `string`

The text background color in the Rich text dialog. The default value is `"white"`.

***

### createMultiColumnText?

> `optional` **createMultiColumnText?**: `boolean`

Allows for creating multicolumn text. If `true`, the **Columns** drop-down list appears in the **Top toolbar** for formatted text elements. The default value is `false`.

***

### applyToAllTextMode?

> `optional` **applyToAllTextMode?**: `boolean`

Allows you to apply formatting to a whole text field despite a text selection. This text mode is turned off by default.

***

### wysiwygMode?

> `optional` **wysiwygMode?**: `boolean`

If `true`, the editor adjusts the text in the Rich text dialog to the appearance on the canvas as close as possible. The default value is `false`.

***

### showHint

> **showHint**: [`IShowHintSettings`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.IShowHintSettings.md)

Enables hints in the drop-down lists. By default, the hints are enabled.

***

### showInput?

> `optional` **showInput?**: [`IShowInputSettings`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.IShowInputSettings.md)

Enables user input in the drop-down lists. By default, the user input is enabled.

***

### textOutline?

> `optional` **textOutline?**: [`ITextOutline`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.ITextOutline.md)

Enables the text outline for low-contrast texts in the Rich text dialog. The feature is turned off by default.

***

### toolbarConfig?

> `optional` **toolbarConfig?**: (`string` \| \{ `name`: `string`; `items`: `string`[]; \})[]

An array defining configuration of the toolbar. The default configuration is:
``` js
[
{ name: "clipboard", items: ["Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "Undo", "Redo"] },
{ name: "editing", items: ["Find", "Replace", "-", "SelectAll"] },
{ name: "insert", items: ["SpecialChar"] },
"/",
{ name: "basicstyles", items: ["Bold", "Italic", "Underline", "-", "RemoveFormat"] },
{ name: "styles", items: ["Font", "FontStyle", "FontSize"] },
{ name: "colors", items: ["cc_textcolor_button"] },
{ name: "tracking", items: ["cctracking"] },
"/",
{ name: "paragraph", items: ["JustifyLeft", "JustifyCenter", "JustifyRight"] },
{ name: "lists", items: ["NumberedList", "BulletedList"] },
{ name: "customerscanvas", items: ["ccleading", "cctextindent"] },
"/",
{ name: "customerscanvas", items: ["ccpaddingtop", "ccpaddingbottom", "ccpaddingleft", "ccpaddingright"] }
]
```

***

### ckeditorConfig?

> `optional` **ckeditorConfig?**: `any`

An array defining the **Special character** list. The default list is:
``` js
["!", "&quot;", "#", "$", "%", "&amp;", "'", "(", ")", "*", "+", "-", ".", "/",
 "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "&lt;", "=", "&gt;", "?", "@",
 "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R","S",
 "T", "U", "V", "W", "X", "Y", "Z", "[", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g",
 "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
 "{", "|", "}", "~", "&euro;", "&lsquo;", "&rsquo;", "&ldquo;", "&rdquo;", "&ndash;", "&mdash;",
 "&iexcl;", "&cent;", "&pound;", "&curren;", "&yen;", "&brvbar;", "&sect;", "&uml;", "&copy;",
 "&ordf;", "&laquo;", "&not;", "&reg;", "&macr;", "&deg;", "&sup2;", "&sup3;", "&acute;",
 "&micro;", "&para;", "&middot;", "&cedil;", "&sup1;", "&ordm;", "&raquo;", "&frac14;",
 "&frac12;", "&frac34;", "&iquest;", "&Agrave;", "&Aacute;", "&Acirc;", "&Atilde;", "&Auml;",
 "&Aring;", "&AElig;", "&Ccedil;", "&Egrave;", "&Eacute;", "&Ecirc;", "&Euml;", "&Igrave;",
 "&Iacute;", "&Icirc;", "&Iuml;", "&ETH;", "&Ntilde;", "&Ograve;", "&Oacute;", "&Ocirc;",
 "&Otilde;", "&Ouml;", "&times;", "&Oslash;", "&Ugrave;", "&Uacute;", "&Ucirc;", "&Uuml;",
 "&Yacute;", "&THORN;", "&szlig;", "&agrave;", "&aacute;", "&acirc;", "&atilde;", "&auml;",
 "&aring;", "&aelig;", "&ccedil;", "&egrave;", "&eacute;", "&ecirc;", "&euml;", "&igrave;",
 "&iacute;", "&icirc;", "&iuml;", "&eth;", "&ntilde;", "&ograve;", "&oacute;", "&ocirc;",
 "&otilde;", "&ouml;", "&divide;", "&oslash;", "&ugrave;", "&uacute;", "&ucirc;", "&uuml;",
 "&yacute;", "&thorn;", "&yuml;", "&OElig;", "&oelig;", "&#372;", "&#374", "&#373", "&#375;",
 "&sbquo;", "&#8219;", "&bdquo;", "&hellip;", "&trade;", "&#9658;", "&bull;", "&rarr;", "&rArr;",
 "&hArr;", "&diams;", "&asymp;"]
```

***

### zoom?

> `optional` **zoom?**: [`IZoomConfig`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.IZoomConfig.md)

A structure containing text zoom configuration.

***

### richComboValues?

> `optional` **richComboValues?**: [`IRichComboValuesConfig`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.IRichComboValuesConfig.md)

An object defining the indent and padding values for the Rich text dialog.

***

### fitTextRectangle?

> `optional` **fitTextRectangle?**: [`IFitTextRectangleSettings`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/WidgetConfigurationInterfaces.IFitTextRectangleSettings.md)

Allows for fitting the bounding rectangle to the text size.
