Skip to content

Chatedit: make default paste mode configurable #854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

rpallai
Copy link
Contributor

@rpallai rpallai commented Feb 17, 2023

Many people like pasting plain text as there is less trouble with
it and does the job. Even Element pastes plain text by default
despite being a rich client. This is why this patch switches to
plain text pasting by default while makes it configurable.

Other version can be pasted by Ctrl+Shift+V.

Cc #849

@rpallai rpallai force-pushed the configurable-pasting branch from 149d71f to b778d85 Compare February 17, 2023 10:46
Many people like pasting plain text as there is less trouble with
it and does the job. Even Element pastes plain text by default
despite being a rich client. This is why this patch switches to
plain text pasting by default while makes it configurable.

Other version can be pasted by `Ctrl+Shift+V`.

Cc quotient-im#849
@rpallai rpallai force-pushed the configurable-pasting branch from b778d85 to be3909d Compare February 20, 2023 08:57
@rpallai rpallai changed the title Chatedit: make default pasting behavior configurable Chatedit: make default paste mode configurable Feb 20, 2023
@berrange
Copy link

While this looks like as a usable workaround, I still feel like the current paste-as-HTML impl is fundamentally broken in its implementation. If it can't reliably paste in HTML that has been selected in the browser window, it does not look fit for purpose as is. Pasting 100% complete well formed HTML documents does not look likely to be the common case.

Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - overall LGTM, save for one fix.

Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
@rpallai rpallai requested a review from KitsuneRal February 27, 2023 12:14
@KitsuneRal KitsuneRal merged commit 69a6ed2 into quotient-im:dev Feb 27, 2023
@KitsuneRal KitsuneRal added the enhancement A feature or change request for Quaternion label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or change request for Quaternion
Projects
Status: Version 0.0.96 - Done
Development

Successfully merging this pull request may close these issues.

3 participants