Paste as plain text

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
Figueroa
Moonbather
Moonbather
Posts: 73
Joined: 2021-04-06, 18:32

Paste as plain text

Unread post by Figueroa » 2021-04-15, 21:51

Chrome has a feature where if you are pasting text into a text box (like at a forum), when you right click, there is the standard choice to Paste, but then also below that, an option to Paste as plain text.

I would like to request the same feature for Pale Moon.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: Paste as plain text

Unread post by vannilla » 2021-04-15, 23:32

Isn't copied text already plain?

New Tobin Paradigm

Re: Paste as plain text

Unread post by New Tobin Paradigm » 2021-04-16, 02:49

Phoenix-class browsers can copy and paste with some ritch text formatting and scripts can control what happens when you copy. Though in practical use this rich formatting is alnost always lost due to the paste target being plain text only and few sites these days pull that shit script wise.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Paste as plain text

Unread post by moonbat » 2021-04-16, 03:05

PermissionsPlus lets you prevent individual sites from fucking with the clipboard.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

New Tobin Paradigm

Re: Paste as plain text

Unread post by New Tobin Paradigm » 2021-04-16, 03:20

Well there is a preference that also prevents it. But that is neither here nor there.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Paste as plain text

Unread post by moonbat » 2021-04-16, 05:12

New Tobin Paradigm wrote:
2021-04-16, 03:20
Well there is a preference that also prevents it.
That preference is all or nothing, my extension lets you control it on a per site level.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

New Tobin Paradigm

Re: Paste as plain text

Unread post by New Tobin Paradigm » 2021-04-16, 05:42

True enough. Gotta love an extension that expands the permissions model by actually using the interfaces in the codebase instead of some ad-hoc half-assed hack.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: Paste as plain text

Unread post by vannilla » 2021-04-16, 06:49

New Tobin Paradigm wrote:
2021-04-16, 02:49
Though in practical use this rich formatting is alnost always lost due to the paste target being plain text only and few sites these days pull that shit script wise.
Yeah, I was talking about that.
Maybe it's just my use of the browser, but pasting textual content between sites or applications always generate plain text.

New Tobin Paradigm

Re: Paste as plain text

Unread post by New Tobin Paradigm » 2021-04-16, 07:12

Well the shit was meant to use the editor specifically more along the lines of the original html composer component. Though Mozilla actually busted it for comm applications when they made it work for Firefox. No surprise there then.

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1566
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: Paste as plain text

Unread post by Lootyhoof » 2021-04-16, 09:10

Recently, Copy As Plain Text was submitted by Falna. Perhaps that could work instead.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Paste as plain text

Unread post by Moonchild » 2021-04-16, 10:22

New Tobin Paradigm wrote:
2021-04-16, 07:12
Well the shit was meant to use the editor specifically more along the lines of the original html composer component.
The thing is with all these websites using contenteditable html these days one might run into preservation of formatting more often.
Rich text editors on the web are thing, after all. And they will accept formatting that is valid for their use/internals.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Figueroa
Moonbather
Moonbather
Posts: 73
Joined: 2021-04-06, 18:32

Re: Paste as plain text

Unread post by Figueroa » 2021-04-17, 00:42

@Moonbat:

I'll give your extension a try. Thanks for the tip.

User avatar
Figueroa
Moonbather
Moonbather
Posts: 73
Joined: 2021-04-06, 18:32

Re: Paste as plain text

Unread post by Figueroa » 2021-04-17, 00:57

The Copy as plain text extension seems to do what I need. Gets me there from a different direction, but works like a charm. Thanks Lootyhoof.

Locked