# Javascript: TXTextControl.Proofing.saveUserDictionary Method

> Saves an existing user dictionary by supplying the contained words as a string array to a callback function.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.Proofing.saveUserDictionary Method
- **329 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-proofing/saveuserdictionary-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-proofing/saveuserdictionary-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-proofing/saveuserdictionary-method/llms-full.txt

---

### Description

Saves an existing user dictionary by supplying the contained words as a string array to a callback function.

### Syntax

```javascript
<void> TXTextControl.Proofing.saveUserDictionary(<string> name, <SaveUserDictionaryCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| name | The user dictionary's name. |
| callback | The callback function which is called as soon as the dictionary content has been received from the server. The callback function is called with two parameters: the dictionary's name as a string and the word list as a string array. |

### Examples

The following example demonstrates `TXTextControl.Proofing.saveUserDictionary` in a practical document-editing workflow. It saves an existing user dictionary by supplying the contained words as a string array to a callback function.

```javascript
function saveUserDictionary(proofing) {
    proofing.saveUserDictionary(
        "QuarterlyReport",
        function(name, words) {
            console.log("save user dictionary result:", { name, words });
        }
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.Proofing.removeWordFromUserDictionary Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-proofing/removewordfromuserdictionary-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.redo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/redo-method/llms-full.txt)
