Skip to content
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

paste only plaintext into the chat input field #1018

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jul 3, 2018

When some marked-up content is in the clipboard, it will be formatted as HTML on paste into the chat input field. The patch fixes it, according to how it is done in file comments. Since we accept plain text only as comment/chat data, it should be inserted as plain text directly.

Before:

screenshot_20180704_003545

After:

screenshot_20180704_003611

Actually, it also affects what is exactly provided as chat message:

screenshot_20180704_004003

(above before the patch, below after)

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz requested review from nickvergessen and danxuliu July 3, 2018 22:39
@blizzz blizzz changed the title paste only plaintext into the comment input form paste only plaintext into the chat input field Jul 3, 2018
@blizzz blizzz added this to the 4.0 (Nextcloud 14) milestone Jul 5, 2018
@nickvergessen nickvergessen merged commit a05afab into master Jul 6, 2018
@nickvergessen nickvergessen deleted the fix/noid/paste-html branch July 6, 2018 08:45
nickvergessen added a commit that referenced this pull request Jan 9, 2020
Ref #1018

Signed-off-by: Joas Schilling <coding@schilljs.com>
nickvergessen added a commit that referenced this pull request Jan 9, 2020
Ref #1018

Signed-off-by: Joas Schilling <coding@schilljs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants