zulip/tools/lib
Kislay Verma e6dabb4ef4 compose_paste: Convert large pasted text into uploaded text file.
When pasting a long piece of text into the compose box (or
message edit textarea), we show a banner giving an option to
put the text into a file and upload it.

The banner is only shown if the text is larger than
`MINIMUM_PASTE_SIZE_FOR_FILE_TREATMENT`.

If the user chooses to "convert to file", the textarea content is
restored to its state before pasting and a file with the pasted
content is uploaded. The banner is hidden as soon as any change is
made to the textarea content to avoid inconsistent state and
confusion.

Fixes #33107.

Co-authored-by: Aditya Chaudhary <aditya.chaudhary1558@gmail.com>
2025-07-08 18:58:03 -07:00
..
__init__.py Extract tools/lib/template_parser.py. 2016-08-01 16:27:50 -07:00
capitalization.py compose_paste: Convert large pasted text into uploaded text file. 2025-07-08 18:58:03 -07:00
git-tools.bash lint: Add .bash extension for tools/lib/git-tools.bash. 2021-06-25 09:01:13 -07:00
gitlint_rules.py ruff: Fix UP006 Use list instead of List for type annotation. 2024-07-13 22:28:22 -07:00
html_branches.py ruff: Fix UP006 Use list instead of List for type annotation. 2024-07-13 22:28:22 -07:00
pretty_print.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
provision_inner.py integration-docs: Migrate PythonAPIIntegration docs. 2025-03-26 11:19:31 -07:00
provision.py provision: Ignore Python warnings while building requirements. 2025-03-19 17:15:09 -07:00
sanity_check.py requirements: Migrate to uv. 2025-02-24 22:29:24 -08:00
template_parser.py webpack: Enable explicitPartialContext for handlebars-loader. 2024-11-15 20:41:59 -08:00
test_script.py ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00
test_server.py ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00