# CollapsingPasteTextArea

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/_paste_textarea/CollapsingPasteTextArea)

Paste-aware text area that collapses large pastes into placeholders.

The full pasted text is stored off-screen in `_pasted_contents` and a
compact `[Pasted text #N]` placeholder is shown in its place. Read
`submitted_value` to get the text with all placeholders expanded back.

## Signature

```python
CollapsingPasteTextArea(
    self,
    kwargs: Any = {},
)
```

## Extends

- `PasteBurstTextArea`

## Constructors

```python
__init__(
    self,
    kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `kwargs` | `Any` |


## Properties

- `submitted_value`

## Methods

- [`reset_paste_state()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/_paste_textarea/CollapsingPasteTextArea/reset_paste_state)
- [`action_delete_right()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/_paste_textarea/CollapsingPasteTextArea/action_delete_right)
- [`action_delete_word_left()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/_paste_textarea/CollapsingPasteTextArea/action_delete_word_left)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/tui/widgets/_paste_textarea.py#L686)