Bug 406906

Summary: Option to Disable Rich/HTML Text
Product: [Plasma] kdeplasma-addons Reporter: Kevin <kjslag>
Component: notesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugseforuns, kjslag, maxmustermann1884, nate, nortexoid
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

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.