# Dialog

#### Turn off the proofreading dialog

Disable the dialog-based proofreading mode by setting `disableDialog` to `true`. Proofreading will run only inline, and the "proofread in dialog" option will be unavailable. By default, the dialog is available.

```javascript
disableDialog: true
```

***

#### Embed the dialog in a sidebar

Place the dialog inside a reserved section of the interface with `proofreadDialogContainer`. By default, the dialog opens as a floating window.

```javascript
proofreadDialogContainer: '#sidebar-dialog'
```

{% hint style="info" %}

* This mode is useful when a sidebar or reserved area should display all suggestions in one place.
* Requires `globalBadge: true`.
* If the sidebar width differs from the default 340px, adjust `badgeOffsetX` and `badgeOffsetY` to position the badge accordingly.
* See the [sidebar demo](https://demos.webspellchecker.com/wproofreader-sidebar.html).
  {% endhint %}

<figure><img src="/files/zqA2XYekVzvahbktjmCJ" alt=""><figcaption></figcaption></figure>

#### Show one dialog for all fields

Aggregate suggestions from all editable fields with `globalProofreadDialog` into a single **Proofread in dialog** window. This is enabled by default; set to `false` to open a separate dialog per field.

```javascript
globalProofreadDialog: true
```

<figure><img src="/files/WVz5EJAWrWT7YKfjE2oA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/v6.12.0/integrations/initialization/configuration-options/ui-elements/dialog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
