Skip to content

fix: enable undo for pasted text by using execCommand#481

Open
AYHD-youtube wants to merge 1 commit into
Ajaxy:masterfrom
AYHD-youtube:fix/undo-pasted-text
Open

fix: enable undo for pasted text by using execCommand#481
AYHD-youtube wants to merge 1 commit into
Ajaxy:masterfrom
AYHD-youtube:fix/undo-pasted-text

Conversation

@AYHD-youtube

Copy link
Copy Markdown

This PR fixes an issue where pasted text could not be undone using Ctrl+Z. It modifies insertHtmlInSelection to use document.execCommand("insertHTML") which preserves the browser undo history.

@netlify

netlify Bot commented Nov 25, 2025

Copy link
Copy Markdown

👷 Deploy request for telegram-tt-previews pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ecf618a

@AYHD-youtube

Copy link
Copy Markdown
Author

@Ajaxy , can you please review this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant