# Javascript: Footnote.edit Method

> Sets the current text input position in the footnote section at the end of the current footnote text, so that the text can be edited or formatted.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 32.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: Footnote.edit Method
- **462 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnote/edit-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnote/edit-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnote/edit-method/llms-full.txt

---

### Description

Sets the current text input position in the footnote section at the end of the current footnote text, so that the text can be edited or formatted.

### Syntax

```javascript
<void> Footnote.edit([<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `Footnote.edit` in a practical document-editing workflow. It sets the current text input position in the footnote section at the end of the current footnote text, so that the text can be edited or formatted.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.footnotes.elementAt(0, function(footnote) {
    if (!footnote) {
        console.warn("No footnote is available.");
        return;
    }

    footnote.edit(
        function(result) {
            if (result) {
                console.log("edit is available.");
            } else {
                console.warn("edit is not available in the current document state.");
            }
        },
        onTxError
    );
}, onTxError);
```

---

## Nearby

- **Previous:** [Footnote Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnote/llms-full.txt)
- **Next:** [Javascript: Footnote.getHighlightColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnote/gethighlightcolor-method/llms-full.txt)
