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.
Post Reply
User avatar
Figueroa
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2021-04-06, 18:32

Paste as plain text

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
Board Warrior
Board Warrior
Posts: 1649
Joined: 2018-05-05, 13:29

Re: Paste as plain text

Post by vannilla » 2021-04-15, 23:32

Isn't copied text already plain?

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 9713
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Paste as plain text

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.
The universe is driven by the complex interaction between three ingredients: matter, energy, and enlightened self-interest.
Image

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

Re: Paste as plain text

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 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 9713
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Paste as plain text

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.
The universe is driven by the complex interaction between three ingredients: matter, energy, and enlightened self-interest.
Image

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

Re: Paste as plain text

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 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 9713
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Paste as plain text

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.
The universe is driven by the complex interaction between three ingredients: matter, energy, and enlightened self-interest.
Image

vannilla
Board Warrior
Board Warrior
Posts: 1649
Joined: 2018-05-05, 13:29

Re: Paste as plain text

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.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 9713
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Paste as plain text

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.
The universe is driven by the complex interaction between three ingredients: matter, energy, and enlightened self-interest.
Image

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

Re: Paste as plain text

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: 29996
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Paste as plain text

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.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

User avatar
Figueroa
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2021-04-06, 18:32

Re: Paste as plain text

Post by Figueroa » 2021-04-17, 00:42

@Moonbat:

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

User avatar
Figueroa
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2021-04-06, 18:32

Re: Paste as plain text

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.

Post Reply