Summary: | Strip down HTML when copying from chat view | ||
---|---|---|---|
Product: | [Unmaintained] telepathy | Reporter: | Martin Klapetek <mklapetek> |
Component: | text-ui | Assignee: | Telepathy Bugs <kde-telepathy-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | francesco.nwokeka, kde, mklapetek |
Priority: | NOR | ||
Version: | git-latest | ||
Target Milestone: | 0.4.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Screenshot with the bug |
Description
Martin Klapetek
2011-04-03 13:31:26 UTC
Created attachment 58536 [details]
Screenshot with the bug
I think it copies both the HTML and plaintext, as you can have various mimetypes in the clipboard at any time. At which point we may be able to get away with just running setAcceptRichText(false) in the ChatTextEdit. (not tested) That could work, yeah, also for different sources which would otherwise paste a "garbled" text. Although we should probably also consider a use case, where you want to copy the conversation and paste it elsewhere (mail, pastebin etc.). (In reply to comment #2) > I think it copies both the HTML and plaintext, as you can have various > mimetypes in the clipboard at any time. > > At which point we may be able to get away with just running > setAcceptRichText(false) in the ChatTextEdit. > > (not tested) The setAcceptRichText(false) in the ChatTextEdit works as it eliminates all html and pastes only text. It's a one line patch. (tested) Is there anything else we're supposed to look out for? Ship it! We can deal with anything else if/when it comes up. Git commit 8586347e2e6f8cdd65fc0a8b2b004af65e007458 by Francesco Nwokeka. Committed on 05/04/2011 at 00:58. Pushed by nwokeka into branch 'master'. FIX: Strip down HTML when copying from chat view BUG: 269996 REVIEW: David Edmundson set the "setAcceptRichText" to false so we don't accept anything unwanted apart from normal text M +3 -0 lib/chat-text-edit.cpp http://commits.kde.org/telepathy-chat-handler/8586347e2e6f8cdd65fc0a8b2b004af65e007458 |