Skip to content

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

Open
AYHD-youtube wants to merge 1 commit intoAjaxy: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 intoAjaxy: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
Copy link
Copy Markdown

netlify Bot commented Nov 25, 2025

👷 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