Bug 406906 - Option to Disable Rich/HTML Text
Summary: Option to Disable Rich/HTML Text
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: notes (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-26 04:20 UTC by Kevin
Modified: 2023-01-04 17:09 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2019-04-26 04:20:40 UTC
The plasma note widget seems to store rich html text. It would be nice to have an option to completely disable rich text and only use plain text. The reason is that quite often pasting text into the note widget results in text formatting that I don't want. And copying text out of the note widget and into a plain text program sometimes pastes extra unwanted html formatting text, such as
{ white-space: pre-wrap; }
which I also do not want.
Comment 1 Christoph Feck 2019-05-16 00:45:14 UTC
It defaults to rich text, see https://cgit.kde.org/kdeplasma-addons.git/tree/applets/notes/package/contents/ui/main.qml#n137

If this is adapted to also handle plain text, the various places where it converts '\n' to '<br>' need to be adapted, too.
Comment 2 Nate Graham 2023-01-04 17:09:13 UTC
> The reason is that quite often pasting text into the note widget results in text formatting that I don't want
Aha, this will be fixed with https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/303, which changes the default paste action to paste plain text, with the exception of clickable links.
Comment 3 Nate Graham 2023-01-04 17:09:45 UTC
Or actually, plaintext paste is already the default, so this has in fact been effectively fixed for a while.